Properly encode before md5. fix #580

This commit is contained in:
Ruud committed 2012-07-14 23:23:45 +02:00
1 parent 7c687d4d6b
commit b3e709c6c5
3 files changed
+6 -5

No files matched your search

+2 -2
View File
@@ -2,8 +2,8 @@ from couchpotato.core.helpers.encoding import toUnicode
from couchpotato.core.helpers.variable import natcmp
from flask.globals import current_app
from flask.helpers import json, make_response
from libs.werkzeug.urls import url_decode
from urllib import unquote
from werkzeug.urls import url_decode
import flask
import re
@@ -57,7 +57,7 @@ def dictToList(params):
def getParam(attr, default = None):
try:
return toUnicode(unquote(getattr(flask.request, 'args').get(attr, default)))
return getParams().get(attr, default)
except:
return default