Skip to content

Commit 15e5418

Browse files
committed
Update Picviewer CE+.user.js
1 parent 5943163 commit 15e5418

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12155,6 +12155,7 @@ ImgOps | https://imgops.com/#b#`;
1215512155
var root_page = /^[^\?#]*\//.exec(url)[0],
1215612156
root_domain = /^\w+\:\/\/\/?[^\/]+/.exec(root_page)[0],
1215712157
absolute_regex = /^\w+\:\/\//;
12158+
src = src.replace(/^\/(\.\.\/)+/, "/");
1215812159
while (src.indexOf("../") === 0) {
1215912160
src = src.substr(3);
1216012161
root_page = root_page.replace(/\/[^\/]+\/$/, "/");

0 commit comments

Comments
 (0)