summaryrefslogtreecommitdiffstats
path: root/system/libraries/Parser.php
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2010-05-21 19:45:25 +0200
committerDerek Jones <derek.jones@ellislab.com>2010-05-21 19:45:25 +0200
commit23e796f7561832a929c1a78c1fb60667563b0756 (patch)
treec4f4c701da2b95bbcfd39b79350225cdfb29d7a6 /system/libraries/Parser.php
parent511e3d72b875401b5cc61a28df45fb65acfd689a (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.php2
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;
}