summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVineeth T M <vineeth.tm@samsung.com>2015-07-20 19:35:34 +0900
committerLuis de Bethencourt <luis@debethencourt.com>2015-07-22 16:39:43 +0100
commit074406bc2c87df79641c03ab3910789d7e35d5a0 (patch)
tree073cf0095a090bf8611b89cb4d6e6f4e6ac3e19e
parente4906c72899e485f674ce818181306875201ad92 (diff)
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
-rw-r--r--validate/launcher/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/validate/launcher/utils.py b/validate/launcher/utils.py
index 6d43847..f7ee633 100644
--- a/validate/launcher/utils.py
+++ b/validate/launcher/utils.py
@@ -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