This commit is contained in:
Kovid Goyal 2020-02-22 08:58:49 +05:30
parent 20b2b0d5d4
commit 7af7fcf561
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -399,6 +399,7 @@ class WebView(RestartingWebEngineView, OpenWithHandler):
url = data.mediaUrl()
if url.scheme() == FAKE_PROTOCOL:
href = url.path().lstrip('/')
if href:
c = current_container()
resource_name = c.href_to_name(href)
if resource_name and c.exists(resource_name) and resource_name not in c.names_that_must_not_be_changed: