mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
- improvement repeated delimiter like {{ and }} will be treated as literal
https://groups.google.com/forum/#!topic/smarty-developers/h9r82Bx4KZw
This commit is contained in:
@@ -243,8 +243,7 @@ class Smarty_Internal_Templatelexer
|
||||
$this->pldel = preg_quote($this->smarty->left_delimiter, '/');
|
||||
$this->ldel = $this->pldel . ($this->smarty->auto_literal ? '(?!\\s+)' : '\\s*');
|
||||
$this->ldel_length = strlen($this->smarty->left_delimiter);
|
||||
$rdel = preg_quote($this->smarty->right_delimiter, '/');
|
||||
$this->rdel = "(?<!{$rdel}){$rdel}(?!{$rdel})";
|
||||
$this->rdel = preg_quote($this->smarty->right_delimiter, '/');
|
||||
$this->rdel_length = strlen($this->smarty->right_delimiter);
|
||||
$this->smarty_token_names['LDEL'] = $this->smarty->left_delimiter;
|
||||
$this->smarty_token_names['RDEL'] = $this->smarty->right_delimiter;
|
||||
|
Reference in New Issue
Block a user