Fixed searches from the url bar causing XSS warnings in the Tor Browser.

This commit is contained in:
hackademix 2019-03-19 23:11:18 +01:00
parent c505c3e999
commit fa623fe400
1 changed files with 3 additions and 1 deletions

View File

@ -245,7 +245,9 @@ var XSS = (() => {
(XSS.xssScanRequestBody ? (XSS.xssScanRequestBody ?
request.requestBody && request.requestBody.formData && request.requestBody && request.requestBody.formData &&
ic.checkPost(request.requestBody.formData, skipParams) ic.checkPost(request.requestBody.formData, skipParams)
: XSS.xssBlockUnscannedPOST && ns.requestCan(request, "script") && _("UnscannedXPost") : XSS.xssBlockUnscannedPOST &&
request.documentUrl && // exclude non-document POSTs, such as url bar searches
ns.requestCan(request, "script") && _("UnscannedXPost")
); );
let protectName = ic.nameAssignment; let protectName = ic.nameAssignment;