summaryrefslogtreecommitdiff
path: root/libs/sysplugins/smarty_internal_templatelexer.php
diff options
context:
space:
mode:
authorUwe.Tews <uwe.tews@localhost>2010-07-14 22:47:37 +0000
committerUwe.Tews <uwe.tews@localhost>2010-07-14 22:47:37 +0000
commitc1e1c0389278db57545d3d9500b28a7b15615941 (patch)
tree744bbe0a5965253f3a8698c20d48dc101ff2aa47 /libs/sysplugins/smarty_internal_templatelexer.php
parent50637fccdd7e9d6b67cd3c7cdd132090e6dd61f8 (diff)
downloadsmarty-c1e1c0389278db57545d3d9500b28a7b15615941.tar.gz
smarty-c1e1c0389278db57545d3d9500b28a7b15615941.tar.bz2
smarty-c1e1c0389278db57545d3d9500b28a7b15615941.zip
- make the date_format modifier work also on objects of the DateTime class
- implementation of parsetrees in the parser to close security holes and remove unwanted empty line in HTML output
Diffstat (limited to 'libs/sysplugins/smarty_internal_templatelexer.php')
-rw-r--r--libs/sysplugins/smarty_internal_templatelexer.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/sysplugins/smarty_internal_templatelexer.php b/libs/sysplugins/smarty_internal_templatelexer.php
index ed694756..cf377000 100644
--- a/libs/sysplugins/smarty_internal_templatelexer.php
+++ b/libs/sysplugins/smarty_internal_templatelexer.php
@@ -63,6 +63,7 @@ class Smarty_Internal_Templatelexer
'QMARK' => '"?"',
'ID' => 'identifier',
'OTHER' => 'text',
+ 'LINEBREAK' => 'newline',
'FAKEPHPSTARTTAG' => 'Fake PHP start tag',
'PHPSTARTTAG' => 'PHP start tag',
'PHPENDTAG' => 'PHP end tag',
@@ -247,7 +248,7 @@ class Smarty_Internal_Templatelexer
if ($this->strip) {
return false;
} else {
- $this->token = Smarty_Internal_Templateparser::TP_OTHER;
+ $this->token = Smarty_Internal_Templateparser::TP_LINEBREAK;
}
}
function yy_r1_9($yy_subpatterns)