From 9190182dda5caa0eae46a1d3a6542abfd036d874 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sun, 18 Sep 2016 16:28:54 +0000 Subject: [PATCH] fhemweb.js: fix get # and co (Forum #57562) git-svn-id: https://svn.fhem.de/fhem/trunk@12171 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/pgm2/fhemweb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/www/pgm2/fhemweb.js b/fhem/www/pgm2/fhemweb.js index c519ebad3..431466b0d 100644 --- a/fhem/www/pgm2/fhemweb.js +++ b/fhem/www/pgm2/fhemweb.js @@ -157,7 +157,7 @@ FW_jqueryReadyFn() } else if(val.match(/^\s*get\s+/)) { // make get use xhr instead of reload //return true; - FW_cmd(FW_root+"?cmd="+val+"&XHR=1", function(data) { + FW_cmd(FW_root+"?cmd="+encodeURIComponent(val)+"&XHR=1", function(data){ if( !data.match( /^.*<\/html>/ ) ) { data = data.replace( '<', '<' ); data = '
'+data+'
';