No need to encode params. fix #311

This commit is contained in:
Ruud
2012-05-20 21:41:02 +02:00
parent 747594d626
commit 1340ec5d55
+3 -3
View File
@@ -26,7 +26,7 @@ def getParams():
for item in nested:
if item is nested[-1]:
current[item] = toUnicode(unquote(value)).encode('utf-8')
current[item] = toUnicode(unquote(value))
else:
try:
current[item]
@@ -35,7 +35,7 @@ def getParams():
current = current[item]
else:
temp[param] = toUnicode(unquote(value)).encode('utf-8')
temp[param] = toUnicode(unquote(value))
return dictToList(temp)
@@ -57,7 +57,7 @@ def dictToList(params):
def getParam(attr, default = None):
try:
return toUnicode(unquote(getattr(flask.request, 'args').get(attr, default))).encode('utf-8')
return toUnicode(unquote(getattr(flask.request, 'args').get(attr, default)))
except:
return default