comparison client/src/components/map/Map.vue @ 4420:2261462ddcdc

Map, Usermanagement: use encodeURIComponent
author Thomas Junk <thomas.junk@intevation.de>
date Wed, 18 Sep 2019 15:21:09 +0200
parents 315474a66589
children b4f04f9076b2
comparison
equal deleted inserted replaced
4419:72de81520a6d 4420:2261462ddcdc
185 // move to user specific default extent if map loads for the first time 185 // move to user specific default extent if map loads for the first time
186 // checking initialLoad will be obsolete once we abandoned the separated admin context 186 // checking initialLoad will be obsolete once we abandoned the separated admin context
187 if (this.initialLoad) { 187 if (this.initialLoad) {
188 this.$store.commit("map/initialLoad", false); 188 this.$store.commit("map/initialLoad", false);
189 var currentUser = this.$store.state.user.user; 189 var currentUser = this.$store.state.user.user;
190 HTTP.get("/users/" + currentUser, { 190 HTTP.get(encodeURIComponent(`/users/${currentUser}`), {
191 headers: { 191 headers: {
192 "X-Gemma-Auth": localStorage.getItem("token"), 192 "X-Gemma-Auth": localStorage.getItem("token"),
193 "Content-type": "text/xml; charset=UTF-8" 193 "Content-type": "text/xml; charset=UTF-8"
194 } 194 }
195 }) 195 })