diff options
-rw-r--r-- | inc/confutils.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/confutils.php b/inc/confutils.php index 1415d48f6..9432c10d5 100644 --- a/inc/confutils.php +++ b/inc/confutils.php @@ -131,7 +131,7 @@ function confToHash($file,$lower=false) { foreach ( $lines as $line ) { //ignore comments - $line = preg_replace('/[^&]?#.*$/','',$line); + $line = preg_replace('/(?<!&)#.*$/','',$line); $line = trim($line); if(empty($line)) continue; $line = preg_split('/\s+/',$line,2); |