mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 12:26:30 +00:00
Remove is_escaper flag from urlencode
urlencode is an url escaper but not an html escaper so I don't think it should be exempt from auto-escaping
This commit is contained in:
committed by
Fabien Potencier
parent
b54292327e
commit
469814f223
@@ -46,7 +46,7 @@ class Twig_Extension_Core extends Twig_Extension
|
||||
'replace' => new Twig_Filter_Function('twig_strtr'),
|
||||
|
||||
// encoding
|
||||
'url_encode' => new Twig_Filter_Function('twig_urlencode_filter', array('is_safe' => array('html'))),
|
||||
'url_encode' => new Twig_Filter_Function('twig_urlencode_filter'),
|
||||
'json_encode' => new Twig_Filter_Function('json_encode'),
|
||||
|
||||
// string filters
|
||||
|
||||
Reference in New Issue
Block a user