From f55ca1d583b60b3d03e6faa554beef5a2d3eb2af Mon Sep 17 00:00:00 2001 From: mohrt Date: Thu, 3 Jul 2003 13:17:40 +0000 Subject: [PATCH] add preg_quote delimiter --- libs/Config_File.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/Config_File.class.php b/libs/Config_File.class.php index aaadf912..1c5235b4 100644 --- a/libs/Config_File.class.php +++ b/libs/Config_File.class.php @@ -271,7 +271,7 @@ class Config_File { foreach ($match[1] as $section) { if ($section{0} == '.' && !$this->read_hidden) continue; - if (preg_match("/\[".preg_quote($section)."\](.*?)(\n\[|\Z)/s", $contents, $match)) + if (preg_match("/\[".preg_quote($section, '/')."\](.*?)(\n\[|\Z)/s", $contents, $match)) if ($section{0} == '.') $section = substr($section, 1); $config_data["sections"][$section]["vars"] = $this->_parse_config_block($match[1]);