From 216d85232dfb4615a6e625d6cd9fa9faf2aba6f8 Mon Sep 17 00:00:00 2001 From: bergware Date: Sun, 30 Oct 2016 09:04:24 +0100 Subject: [PATCH] Replace ALL '#' comment lines with ';' (and make Squid happy) --- plugins/dynamix/include/Helpers.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/dynamix/include/Helpers.php b/plugins/dynamix/include/Helpers.php index 86a909e95..b36608e4a 100644 --- a/plugins/dynamix/include/Helpers.php +++ b/plugins/dynamix/include/Helpers.php @@ -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); } ?>