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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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