This commit is contained in:
Ethan O'Brien 2021-08-22 20:15:21 -05:00
parent eeebc7ff8d
commit b797452732

View file

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