From 8525bfc7fb2e868edf24fb5c6fea00bc871d7489 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sat, 26 Oct 2013 14:06:21 +0200 Subject: Don't crash on non ascii bytestrings in db params. Thanks Karen Tracey for the report. Fix #422. --- tests/urls.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/urls.py') diff --git a/tests/urls.py b/tests/urls.py index 4bed492..8a88385 100644 --- a/tests/urls.py +++ b/tests/urls.py @@ -1,3 +1,5 @@ +# coding: utf-8 + """ URLpatterns for the debug toolbar. @@ -22,6 +24,7 @@ urlpatterns = patterns('tests.views', url(r'^resolving3/(.+)/$', 'resolving_view', { 'arg2' : 'default' }), url(r'^regular/(?P.*)/$', 'regular_view'), url(r'^non_ascii_context/$', 'non_ascii_context'), + url(r'^non_ascii_bytes_in_db_params/$', 'new_user', {'username': 'djàngó'.encode('utf-8')}), url(r'^non_ascii_request/$', 'regular_view', {'title': NonAsciiRepr()}), url(r'^new_user/$', 'new_user'), url(r'^execute_sql/$', 'execute_sql'), -- cgit v1.2.3