Fixed searches from the url bar causing XSS warnings in the Tor Browser.
This commit is contained in:
parent
c505c3e999
commit
fa623fe400
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue