mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
all split()[0] are safe for url-redirect
This commit is contained in:
@@ -3,4 +3,7 @@ function foo() {
|
||||
var urlParts = document.location.href.split('?');
|
||||
var loc = urlParts[0] + "?" + boxes.value;
|
||||
window.location = loc
|
||||
|
||||
// Also OK.
|
||||
window.location.replace(window.location.href.split("#")[0] + "#mappage");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user