diff options
| author | Uwe Tews <uwe.tews@googlemail.com> | 2015-08-06 01:19:11 +0200 |
|---|---|---|
| committer | Uwe Tews <uwe.tews@googlemail.com> | 2015-08-06 01:19:11 +0200 |
| commit | e1cc514a68028833e44baf4373d992f55400924b (patch) | |
| tree | c7a42d72bbe67239fe29ddd48fb8936eb5d1af72 /lexer/smarty_internal_templatelexer.plex | |
| parent | ca969fe663ebc8a702b6706718ed4ea94379799a (diff) | |
| download | smarty-e1cc514a68028833e44baf4373d992f55400924b.tar.gz smarty-e1cc514a68028833e44baf4373d992f55400924b.tar.bz2 smarty-e1cc514a68028833e44baf4373d992f55400924b.zip | |
- avoid possible circular object referances caused by parser/lexer objects
Diffstat (limited to 'lexer/smarty_internal_templatelexer.plex')
| -rw-r--r-- | lexer/smarty_internal_templatelexer.plex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lexer/smarty_internal_templatelexer.plex b/lexer/smarty_internal_templatelexer.plex index 3c6d9ca9..67602cbb 100644 --- a/lexer/smarty_internal_templatelexer.plex +++ b/lexer/smarty_internal_templatelexer.plex @@ -361,7 +361,7 @@ class Smarty_Internal_Templatelexer } text { $to = strlen($this->data); - preg_match("~($this->ldel)|([<]script\s+language\s*=\s*[\"\']?\s*php\s*[\"\']?\s*[>])|([<][?])|([<][%])|([?][>])|([%][>])~i",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); + preg_match("~($this->ldel)|(<[?]((php\s+|=)|\s+))|(<[%])|(<[?]xml\s+)|(<script\s+language\s*=\s*[\"']?\s*php\s*[\"']?\s*>)|([?][>])|([%][>])~i",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); if (isset($match[0][1])) { $to = $match[0][1]; } |
