Code

Ticket #1375: add_some_characters_to_quote.diff

File add_some_characters_to_quote.diff, 426 bytes (added by Eftarjin, 7 years ago)
Line 
1Index: django/contrib/admin/views/main.py
2===================================================================
3--- django/contrib/admin/views/main.py  (revision 6289)
4+++ django/contrib/admin/views/main.py  (working copy)
5@@ -61,7 +61,7 @@
6     res = list(s)
7     for i in range(len(res)):
8         c = res[i]
9-        if c in ':/_':
10+        if c in ':/_#?@=&':
11             res[i] = '_%02X' % ord(c)
12     return ''.join(res)
13