From: Jordi Boggiano Date: Tue, 5 Oct 2010 21:51:42 +0000 (+0200) Subject: Remove is_escaper flag from urlencode X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=469814f2234780a22306a983bbb2ab61711a06e4;p=web%2Fkonrad%2Ftwig.git 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 --- diff --git a/lib/Twig/Extension/Core.php b/lib/Twig/Extension/Core.php index 75091d2..72d1735 100644 --- a/lib/Twig/Extension/Core.php +++ b/lib/Twig/Extension/Core.php @@ -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