[FIX] cgi removal

bzr revid: xmo@openerp.com-20130927120503-9ubf7vgrt38xjywc
This commit is contained in:
Xavier Morel 2013-09-27 14:05:03 +02:00
parent 8f42fb75c6
commit 9194f3eb78
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ class QWebXml(object):
if 'url_for' not in v:
raise KeyError("qweb: no 'url_for' found in context")
path = str(v['url_for'](self.eval_format(av, v)))
return ' %s="%s"' % (an[2:], cgi.escape(path, 1))
return ' %s="%s"' % (an[2:], werkzeug.utils.escape(path))
# Tags
def render_tag_raw(self, e, t_att, g_att, v):