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+'
';