For consistent hashing/comparing of filenames, always decode URLs

This commit is contained in:
Etoh 2015-07-19 13:59:57 +01:00
parent 9cbfcd99b2
commit b9292fcac4

View File

@ -161,8 +161,8 @@ def blackholeStdoutForFrozenWindow():
def stripfilename(filename, stripURL):
if filename:
filename = urllib.unquote(filename)
if stripURL:
filename = urllib.unquote(filename)
filename = filename.split(u"/")[-1]
return re.sub(constants.FILENAME_STRIP_REGEX, "", filename)
else: