2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

Fix attribute filling with "

git-svn-id: https://svn.fhem.de/fhem/trunk@2805 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2013-02-25 12:41:54 +00:00
parent ffb155971f
commit f47c72cf0e

View File

@ -308,10 +308,9 @@ FW_queryValue(cmd, qFn, qArg)
qConn.onreadystatechange = function() {
if(qConn.readyState != 3)
return;
qFn = qFn.replace("%", qConn.responseText)
.replace(/[\r\n]/g, "");
eval(qFn);
delete qFn;
var qResp = qConn.responseText.replace(/[\r\n]/g, "")
.replace(/"/g, "\\\"");
eval(qFn.replace("%", qResp));
delete qConn;
}
qConn.open("GET", document.location.pathname+"?cmd="+cmd+"&XHR=1", true);