mirror of
https://github.com/github/codeql.git
synced 2026-04-27 01:35:13 +02:00
Merge pull request #2216 from asger-semmle/xss-encodeURIComponent
Approved by max-schaefer
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
function test() {
|
||||
let loc = window.location.href;
|
||||
$('<a href="' + encodeURIComponent(loc) + '">click</a>'); // OK
|
||||
}
|
||||
Reference in New Issue
Block a user