Avoid setting window.location directly to avoid exploit of cross site scripting. Thanks to Lokesh (@lokesh1095) for the report and solution. Closes GitLab issue #494.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-08-16 18:46:10 -04:00
parent ed76278096
commit 9ebe80595a
2 changed files with 4 additions and 1 deletions
@@ -34,7 +34,7 @@
// template.
var currentHash = window.location.hash;
if (currentHash.length) {
window.location = currentHash.substring(1);
window.location.pathname = currentHash.substring(1);
}
function waitForJQuery(func) {