mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
add filter to url (#5535)
This commit is contained in:
parent
c05cbeae88
commit
d80a74b915
2 changed files with 24 additions and 3 deletions
|
@ -125,7 +125,7 @@ function parseUriArgs(decodeUrl) {
|
|||
name = arg.substring(0, i);
|
||||
r[name] = arg.substring(i + 1);
|
||||
if (decodeUrl) { r[name] = decodeURIComponent(arg.substring(i + 1)); }
|
||||
if (!isSafeString(r[name])) { delete r[name]; } else { var x = parseInt(r[name]); if (x == r[name]) { r[name] = x; } }
|
||||
if (!isSafeString2(r[name])) { delete r[name]; } else { var x = parseInt(r[name]); if (x == r[name]) { r[name] = x; } }
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue