Une MAJ de sécurité est nécessaire sur notre version actuelle. Elle sera effectuée lundi 02/08 entre 12h30 et 13h. L'interruption de service devrait durer quelques minutes (probablement moins de 5 minutes).

Commit 1ab80c88 authored by Ryan Herbert's avatar Ryan Herbert Committed by marc duez
Browse files

url.js param failsafe

if a parameter is passed that doesn't respect the format, ignore it
parent b5b15d94
......@@ -115,6 +115,13 @@ Url.prototype= {
}
for (var i = 0; i < url_param.length; i++) {
var tmparr = url_param[i].split("=");
// if the format isn't respected ignore parameter
if (tmparr.length !== 2) {
console.log("incorrect parameter: " + url_param[i]);
continue;
}
var p = params[tmparr[0]];
var key = this.encoder.decode(tmparr[0]);
var val = tmparr[1];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment