mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
Fix attribute filling with "
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@2805 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f99b0a8b2f
commit
00b6657e0e
@ -308,10 +308,9 @@ FW_queryValue(cmd, qFn, qArg)
|
|||||||
qConn.onreadystatechange = function() {
|
qConn.onreadystatechange = function() {
|
||||||
if(qConn.readyState != 3)
|
if(qConn.readyState != 3)
|
||||||
return;
|
return;
|
||||||
qFn = qFn.replace("%", qConn.responseText)
|
var qResp = qConn.responseText.replace(/[\r\n]/g, "")
|
||||||
.replace(/[\r\n]/g, "");
|
.replace(/"/g, "\\\"");
|
||||||
eval(qFn);
|
eval(qFn.replace("%", qResp));
|
||||||
delete qFn;
|
|
||||||
delete qConn;
|
delete qConn;
|
||||||
}
|
}
|
||||||
qConn.open("GET", document.location.pathname+"?cmd="+cmd+"&XHR=1", true);
|
qConn.open("GET", document.location.pathname+"?cmd="+cmd+"&XHR=1", true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user