mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
add preg_quote delimiter
This commit is contained in:
@@ -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]);
|
||||
|
Reference in New Issue
Block a user