mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
fhemweb.js: esacape \ (forum #21086)
git-svn-id: https://svn.fhem.de/fhem/trunk@5151 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9823d8dcbd
commit
ed9dcc4778
@ -264,6 +264,7 @@ FW_queryValue(cmd, qFn, qArg)
|
||||
if(qConn.readyState != 3)
|
||||
return;
|
||||
var qResp = qConn.responseText.replace(/[\r\n]/g, "")
|
||||
.replace(/\\/g, "\\\\")
|
||||
.replace(/"/g, "\\\"");
|
||||
eval(qFn.replace("%", qResp));
|
||||
delete qConn;
|
||||
|
Loading…
Reference in New Issue
Block a user