Regex pattern problem in shared.literal_compiler_param.php ?

15 views
Skip to first unread message

Gaillard Rémi

unread,
Feb 5, 2014, 1:50:57 PM2/5/14
to smarty-d...@googlegroups.com
Hi Everyone,

I think there is a bug inside the pattern /^([\'"]?)[a-zA-Z0-9]+(\\1)$/.
For me, that should be /^([\'"]?)[a-zA-Z0-9-]+(\\1)$/ .Indeed, When you call the escape modifier with an encoding parameter like {$var|escape:'html':'UTF-8'} that will throw an exception.

Best Regards,

Rémi Gaillard

uwe.tews

unread,
Feb 5, 2014, 2:40:27 PM2/5/14
to smarty-d...@googlegroups.com
Thanks for your input. This is now fixed in the SVN trunk and will later be included in 3.1.17
 Regards Uwe
Reply all
Reply to author
Forward
0 new messages