validate:launcher: unquote the path to remove special characters
authorVineeth T M <vineeth.tm@samsung.com>
Mon, 20 Jul 2015 10:35:34 +0000 (19:35 +0900)
committerLuis de Bethencourt <luis@debethencourt.com>
Wed, 22 Jul 2015 15:39:43 +0000 (16:39 +0100)
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

validate/launcher/utils.py

index 6d43847..f7ee633 100644 (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