From 1602f5dcc2b210ad1fce3557bfd1348fde30c838 Mon Sep 17 00:00:00 2001 From: Phyks Date: Thu, 1 Aug 2013 14:43:20 +0200 Subject: [PATCH] Small security fix --- js.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js.js b/js.js index c1dde41..3ff6622 100644 --- a/js.js +++ b/js.js @@ -89,6 +89,8 @@ window.onload = function() { } } } + + params_url = encodeURI(params_url); if(available || free || station) { @@ -459,11 +461,11 @@ window.onload = function() { { if(GET != '' && GET != "position") { - input_params += ""; + input_params += ""; } } - document.getElementById("position").innerHTML = '


'+escapeHTML(input_params)+'
'; + document.getElementById("position").innerHTML = '


'+input_params+'
'; } } else //If we didn't choose what to do, display the choices