For consistent hashing/comparing of filenames, always decode URLs
This commit is contained in:
parent
9cbfcd99b2
commit
b9292fcac4
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user