Re: Slash in config section name

From: Date: Mon, 04 Nov 2002 13:12:52 +0000
Subject: Re: Slash in config section name
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6318@lists.php.net to get a copy of this message
On Mon, Nov 04, 2002 at 02:11:21PM +0100, Ralph Meijer wrote: > ... I have attached a very small patch file to do just that. Well, not quite. Here it is. -- Greetz, Ralphm

--- Config_File.class.php.orig Mon Nov 4 14:02:02 2002 +++ Config_File.class.php Mon Nov 4 13:51:20 2002 @@ -266,7 +266,7 @@ 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]);
« previous php.smarty.general (#6318) next »