fully encode URL before passing it to pdfjs
This commit is contained in:
parent
2f34bdf9b9
commit
cab1d3c666
@ -21,6 +21,8 @@
|
||||
|
||||
import os
|
||||
|
||||
from PyQt5.QtCore import QUrl
|
||||
|
||||
from qutebrowser.browser import webelem
|
||||
from qutebrowser.utils import utils
|
||||
|
||||
@ -56,7 +58,7 @@ def _generate_pdfjs_script(url):
|
||||
"""
|
||||
return (
|
||||
'PDFView.open("{url}");\n'
|
||||
).format(url=webelem.javascript_escape(url.toString()))
|
||||
).format(url=webelem.javascript_escape(url.toString(QUrl.FullyEncoded)))
|
||||
|
||||
|
||||
def fix_urls(asset):
|
||||
|
Loading…
Reference in New Issue
Block a user