From 5bec3ef0869939f4f03b59711d9d4f13e20d9410 Mon Sep 17 00:00:00 2001 From: tmeissner Date: Wed, 27 Feb 2013 13:30:59 +0100 Subject: [PATCH] use the encodeURI() function to encode the url string --- scripts/haltestellen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/haltestellen.js b/scripts/haltestellen.js index fed5f5d..d4bfed8 100644 --- a/scripts/haltestellen.js +++ b/scripts/haltestellen.js @@ -89,7 +89,7 @@ function ajaxCall(dataUrl, outputElement, callback, responseType) { var target = document.getElementById("output"); var hstName = document.getElementById("q").value; //var hstUrl = serverUrl + "Abfahrten.do?ort=dresden&hst=" + hstName; - var hstUrl = serverUrl + "abfahrtsmonitor.py?ort=dresden&hst=" + hstName; + var hstUrl = encodeURI(serverUrl + "abfahrtsmonitor.py?ort=dresden&hst=" + hstName); ajaxCall(hstUrl, target, function(data) {