Merge pull request #2216 from asger-semmle/xss-encodeURIComponent

Approved by max-schaefer
This commit is contained in:
semmle-qlci
2019-10-30 11:49:31 +00:00
committed by GitHub
2 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
function test() {
let loc = window.location.href;
$('<a href="' + encodeURIComponent(loc) + '">click</a>'); // OK
}