more post data tweaks

This commit is contained in:
zefie
2022-10-09 21:53:44 -04:00
parent bf35f0ba60
commit e544e821c3
2 changed files with 4 additions and 4 deletions

View File

@@ -442,9 +442,6 @@ class WTVShared {
}
}
}
} catch (e) {
}
var post_obj = this.filterRequestLog(post_obj);
post_text = "";
Object.keys(post_obj.query).forEach(function (k) {
@@ -452,6 +449,9 @@ class WTVShared {
});
post_text = post_text.substring(0, post_text.length - 1);
obj.post_data = post_text.hexEncode();
} catch (e) {
obj.post_data = obj.post_data.toString(this.CryptoJS.enc.Hex);
}
} else {
// simple, no filter
obj.post_data = obj.post_data.toString();

View File

@@ -583,7 +583,7 @@ async function processURL(socket, request_headers) {
}
}
} catch (e) {
console.log("error:", e)
}
}
if ((shortURL.indexOf("http") != 0 && shortURL.indexOf("ftp") != 0 && shortURL.indexOf(":") > 0 && shortURL.indexOf(":/") == -1)) {