diff options
author | hackademix <giorgio@maone.net> | 2019-02-25 13:04:09 +0100 |
---|---|---|
committer | hackademix <giorgio@maone.net> | 2019-02-25 13:04:09 +0100 |
commit | c80d6d7f2842e7e07bd2b070d975f898f23b54dd (patch) | |
tree | 75f9db6b4526e58b69c905a0c9ad604d7c9fb02f | |
parent | 14bed707e5c9891d4502e276a757bbef014e6b4e (diff) |
Fixed bug preventing javascript: URLs from being correctly processed.
-rw-r--r-- | main_background.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main_background.js b/main_background.js index 324c68e..ebf9358 100644 --- a/main_background.js +++ b/main_background.js @@ -1086,6 +1086,7 @@ async function editHtml(html, documentUrl, tabId, frameId, whitelisted){ edited = dejaVu.get(key); } else { let url = `view-source:${documentUrl}#line${line}(<${element.tagName} ${name}>)\n${encodeURIComponent(value.trim())}`; + if (name === "href") value = decodeURIComponent(value); edited = await get_script(value, url, tabId, whitelist.contains(documentUrl)); dejaVu.set(key, edited); } |