cvs: smarty /libs Config_File.class.php
"Monte Ohrt" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmohrt1057238260@cvsserver> |
mohrt Thu Jul 3 09:17:40 2003 EDT
Modified files:
/smarty/libs Config_File.class.php
Log:
add preg_quote delimiter
Index: smarty/libs/Config_File.class.php
diff -u smarty/libs/Config_File.class.php:1.49 smarty/libs/Config_File.class.php:1.50
--- smarty/libs/Config_File.class.php:1.49 Fri Jun 6 09:52:21 2003
+++ smarty/libs/Config_File.class.php Thu Jul 3 09:17:40 2003
@@ -37,7 +37,7 @@
* @package Smarty
*/
-/* $Id: Config_File.class.php,v 1.49 2003/06/06 13:52:21 mohrt Exp $ */
+/* $Id: Config_File.class.php,v 1.50 2003/07/03 13:17:40 mohrt Exp $ */
/**
* Config file reading class
* @package Smarty
@@ -271,7 +271,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]);
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php