diff --git a/src/Mod/Start/StartPage/StartPage.py b/src/Mod/Start/StartPage/StartPage.py index 89a30e4e4f..6b11905a0c 100644 --- a/src/Mod/Start/StartPage/StartPage.py +++ b/src/Mod/Start/StartPage/StartPage.py @@ -109,8 +109,8 @@ def getInfo(filename): import gnomevfs except Exception: # alternative method - import hashlib - fhash = hashlib.md5(("file://"+path).encode("utf8")).hexdigest() + import hashlib, urllib + fhash = hashlib.md5(urllib.quote("file://"+path,safe=":/")).hexdigest() thumb = os.path.join(os.path.expanduser("~"),".thumbnails","normal",fhash+".png") else: uri = gnomevfs.get_uri_from_local_path(path)