Update loader.js

This commit is contained in:
Ethan O'Brien 2021-08-23 10:45:07 -05:00 committed by GitHub
parent a87bebc916
commit 88a67238b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,7 @@ for (var i=0; i<split3.length; i++) {
split1.push(split3[i])
}
}
if (! path2Send.startsWith('/') && path2Send.split('://').length != 1 && path2Send.split('http:').length != 1 && path2Send.split('https:').length != 1) {
if (! path2Send.startsWith('/') && path2Send.split('://').length == 1 && path2Send.split('http:').length == 1 && path2Send.split('https:').length == 1) {
for (var w=0; w<split2.length; w++) {
if (split2[w] == '' || split2[w] == '.') {
} else if (split2[w] == '..') {