Skip to content
Myr

fixed #276.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent 005e170 · Browse files · 1 file+4 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−2 removed

  • other:+4 added−2 removed

1 file+4 added−2 removed

modified:jinja/filters.py+4 added-2 removed
373 unmodified lines
374 def wrapped(env, context, value):375 if isinstance(value, dict):376 tmp = {}377 for key, value in value.iteritems():378 tmp[env.to_unicode(key)] = env.to_unicode(value)378 key = env.to_unicode(key).encode(env.charset)379 value = env.to_unicode(value).encode(env.charset)380 tmp[key] = value381 return urlencode(tmp)382 else:381 return quote(env.to_unicode(value))383 return quote(env.to_unicode(value).encode(env.charset))384 return wrapped385386387def do_jsonencode():
597 unmodified lines