Disable percent-decoding for QtWebEngine with Qt >= 5.8.1
This commit is contained in:
parent
b3ffd9a63d
commit
b40a1bfb83
@ -137,9 +137,11 @@ def _get_suggested_filename(path):
|
||||
"""
|
||||
filename = os.path.basename(path)
|
||||
filename = re.sub(r'\([0-9]+\)$', '', filename)
|
||||
if not qtutils.version_check('5.8.1'):
|
||||
# https://bugreports.qt.io/browse/QTBUG-58155
|
||||
filename = urllib.parse.unquote(filename)
|
||||
# Doing basename a *second* time because there could be a %2F in there...
|
||||
# Doing basename a *second* time because there could be a %2F in
|
||||
# there...
|
||||
filename = os.path.basename(filename)
|
||||
return filename
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user