mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
7 lines
216 B
JavaScript
7 lines
216 B
JavaScript
function sanitizeUrl(url) {
|
|
let u = decodeURI(url).trim().toLowerCase();
|
|
if (u.startsWith("javascript:") || u.startsWith("data:") || u.startsWith("vbscript:"))
|
|
return "about:blank";
|
|
return url;
|
|
}
|