Added string cast in check_valid_urlencode to prevent urllib from failing

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40438
This commit is contained in:
elpolilla 2008-11-27 11:21:28 +00:00
parent af842a3e6d
commit b714b5ab09
1 changed files with 1 additions and 0 deletions

View File

@ -160,5 +160,6 @@ def check_valid_urlencode(url):
def check_param(p):
return all(check_str(s) for s in p.split('=', 1))
url = url.encode('utf-8')
split_result = urlparse.urlsplit(url)
return check_str(split_result.path) and all(check_param(p) for p in split_result.query.split('&'))