Commit b69570d6 authored by Vincent Bechu's avatar Vincent Bechu

[erp5_web_renderjs_ui] Replace character '+' by '%20' before decoding url parameters in router.

/reviewed-on nexedi/erp5!345
parent 3a689a44
......@@ -781,8 +781,8 @@
if (subhash !== '') {
keyvalue = subhash.split('=');
if (keyvalue.length === 2) {
key = decodeURIComponent(keyvalue[0]);
tmp = decodeURIComponent(keyvalue[1]);
key = decodeURIComponent(keyvalue[0].replace(/\+/gm, "%20"));
tmp = decodeURIComponent(keyvalue[1].replace(/\+/gm, "%20"));
if (tmp && (endsWith(key, ":json"))) {
tmp = JSON.parse(tmp);
}
......
......@@ -232,7 +232,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>958.41403.15830.7458</string> </value>
<value> <string>961.9337.61584.40226</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -250,7 +250,7 @@
</tuple>
<state>
<tuple>
<float>1491991472.33</float>
<float>1501689246.43</float>
<string>UTC</string>
</tuple>
</state>
......
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