validate:launcher: unquote the path to remove special characters

When getting path from url using, url2path, it is returning
special characters (%20 for space etc..), instead of returning
plain path. path.unquote replaces the same..

https://bugzilla.gnome.org/show_bug.cgi?id=752611
This commit is contained in:
Vineeth T M 2015-07-20 19:35:34 +09:00 committed by Luis de Bethencourt
parent e4906c7289
commit 074406bc2c

View file

@ -148,6 +148,7 @@ def url2path(url):
if "win32" in sys.platform:
if path[0] == '/':
return path[1:] # We need to remove the first '/' on windows
path = urllib.unquote(path)
return path