Mercurial > gemma
diff client/src/components/Bottlenecks.vue @ 4632:2e47b32a389d
client: encode strings in url paths
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Fri, 11 Oct 2019 12:54:15 +0200 |
parents | bff6c5c1db4f |
children | 008bc1ae8897 |
line wrap: on
line diff
--- a/client/src/components/Bottlenecks.vue Fri Oct 11 12:23:11 2019 +0200 +++ b/client/src/components/Bottlenecks.vue Fri Oct 11 12:54:15 2019 +0200 @@ -173,8 +173,7 @@ this.openBottleneckSurveys = null; } else { this.loading = bottleneck; - - HTTP.get("/surveys/" + bottleneck.properties.name, { + HTTP.get("/surveys/" + encodeURIComponent(bottleneck.properties.name), { headers: { "X-Gemma-Auth": localStorage.getItem("token"), "Content-type": "text/xml; charset=UTF-8"