projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b542923
)
Remove is_escaper flag from urlencode
author
Jordi Boggiano
<j.boggiano@seld.be>
Tue, 5 Oct 2010 21:51:42 +0000 (23:51 +0200)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Sun, 7 Nov 2010 19:46:32 +0000 (20:46 +0100)
urlencode is an url escaper but not an html escaper so I don't think it should be exempt from auto-escaping
lib/Twig/Extension/Core.php
patch
|
blob
|
history
diff --git
a/lib/Twig/Extension/Core.php
b/lib/Twig/Extension/Core.php
index
75091d2
..
72d1735
100644
(file)
--- 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