Replace ALL '#' comment lines with ';' (and make Squid happy)

This commit is contained in:
bergware
2016-10-30 09:04:24 +01:00
parent 3b86063380
commit 216d85232d

View File

@@ -241,9 +241,9 @@ function transpose_user_path($path) {
}
// custom parse_ini_file/string functions to deal with '#' comment lines
function my_parse_ini_file($file, $sections=false, $scanner=INI_SCANNER_NORMAL) {
return parse_ini_string(preg_replace('/^#/',';',file_get_contents($file)),$sections,$scanner);
return parse_ini_string(preg_replace('/^#/m',';',file_get_contents($file)),$sections,$scanner);
}
function my_parse_ini_string($text, $sections=false, $scanner=INI_SCANNER_NORMAL) {
return parse_ini_string(preg_replace('/^#/',';',$text),$sections,$scanner);
return parse_ini_string(preg_replace('/^#/m',';',$text),$sections,$scanner);
}
?>