0001-misc-access-django-POST-using-original-unicode-keys-.patch
wcs/compat.py | ||
---|---|---|
117 | 117 |
if not self.form: |
118 | 118 |
self.form = {} |
119 | 119 |
for k in self.django_request.POST: |
120 |
if isinstance(k, unicode): |
|
121 |
k = k.encode(site_charset) |
|
122 | 120 |
if k.endswith('[]'): |
123 | 121 |
v = [x.encode(site_charset) for x in self.django_request.POST.getlist(k)] |
124 | 122 |
else: |
125 | 123 |
v = self.django_request.POST[k] |
126 | 124 |
if isinstance(v, unicode): |
127 | 125 |
v = v.encode(site_charset) |
126 |
if isinstance(k, unicode): |
|
127 |
k = k.encode(site_charset) |
|
128 | 128 |
self.form[k] = v |
129 | 129 | |
130 | 130 |
for k, upload_file in self.django_request.FILES.items(): |
131 |
- |