We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c6af76 commit 7e9ee6fCopy full SHA for 7e9ee6f
src/content/eventsHook.js
@@ -60,7 +60,7 @@ if (location.protocol == "file:") {
60
}
61
62
const block = (el, url = el.currentSrc) => {
63
- console.warn("Blocking path traversal in load", url, el);
+ console.warn("Blocking path traversal", url, el);
64
const request = notify(url, false);
65
// restore full url, notify truncates to dir
66
request.url = url;
@@ -88,7 +88,7 @@ if (location.protocol == "file:") {
88
target.href,
89
document.baseURI);
90
if (!isAllowedPath(url)) {
91
- if (e.type == "loadstart" || target instanceof HTMLImageElement) {
+ if (e.type == "loadstart") {
92
block(target);
93
94
} else if (!blockedList.has(target)) {
0 commit comments