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):
|
def stripfilename(filename, stripURL):
|
||||||
if filename:
|
if filename:
|
||||||
|
filename = urllib.unquote(filename)
|
||||||
if stripURL:
|
if stripURL:
|
||||||
filename = urllib.unquote(filename)
|
|
||||||
filename = filename.split(u"/")[-1]
|
filename = filename.split(u"/")[-1]
|
||||||
return re.sub(constants.FILENAME_STRIP_REGEX, "", filename)
|
return re.sub(constants.FILENAME_STRIP_REGEX, "", filename)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user