Files
codeql/javascript/ql/test/query-tests/Security/CWE-079/encodeuri.js
2019-10-28 17:12:40 +00:00

5 lines
120 B
JavaScript

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