Commit f0aa1f81 authored by Vincent Bechu's avatar Vincent Bechu Committed by Eteri

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

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