diff options
author | Derek Allard <derek.allard@ellislab.com> | 2010-01-16 20:06:30 +0100 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2010-01-16 20:06:30 +0100 |
commit | 03151b09a805f0e91700a7f49a3deffed8beecf8 (patch) | |
tree | 8e2821ca85ba7fb0467af5b2403fbda9a7f188d1 /system | |
parent | d827058bb0b1d2b54f7cb0e8343885cedac43334 (diff) |
preg_quote() in parser
Diffstat (limited to 'system')
-rw-r--r-- | system/libraries/Parser.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Parser.php b/system/libraries/Parser.php index 56d27e7da..161de613f 100644 --- a/system/libraries/Parser.php +++ b/system/libraries/Parser.php @@ -197,7 +197,7 @@ class CI_Parser { */ function _match_pair($string, $variable) { - if ( ! preg_match("|".$this->l_delim . $variable . $this->r_delim."(.+?)".$this->l_delim . '/' . $variable . $this->r_delim."|s", $string, $match)) + if ( ! preg_match("|" . preg_quote($this->l_delim) . $variable . preg_quote($this->r_delim) . "(.+) ". preg_quote($this->l_delim) . '/' . $variable . preg_quote($this->r_delim) . "|s", $string, $match)) { return FALSE; } |