diff options
author | Derek Jones <derek.jones@ellislab.com> | 2010-05-21 19:45:25 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2010-05-21 19:45:25 +0200 |
commit | 23e796f7561832a929c1a78c1fb60667563b0756 (patch) | |
tree | c4f4c701da2b95bbcfd39b79350225cdfb29d7a6 /system/libraries/Parser.php | |
parent | 511e3d72b875401b5cc61a28df45fb65acfd689a (diff) |
fixed a bug in the Parser where the regex would not correctly match pair variables, fixes #42
Diffstat (limited to 'system/libraries/Parser.php')
-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 9387f1a9a..41a438bac 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("|" . 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)) + 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; } |