misc: disable l10n by default in templated URLs (#25695)

This commit is contained in:
Frédéric Péters 2018-08-15 21:49:11 +02:00
parent c5f7d9ec3a
commit ccd3cd19d7
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class TemplateError(Exception):
def get_templated_url(url, context=None):
if '{{' not in url and '{%' not in url and '[' not in url:
return url
template_vars = Context()
template_vars = Context(use_l10n=False)
if context:
template_vars.update(context)
template_vars['user_email'] = ''