mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
fhemweb.js: fix multiline <html> matching (Forum #98419)
git-svn-id: https://svn.fhem.de/fhem/trunk@18896 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
174ae1ab1c
commit
83fe104697
@ -201,7 +201,7 @@ FW_jqueryReadyFn()
|
|||||||
// make get use xhr instead of reload
|
// make get use xhr instead of reload
|
||||||
//return true;
|
//return true;
|
||||||
FW_cmd(FW_root+"?cmd="+encodeURIComponent(val)+"&XHR=1", function(data){
|
FW_cmd(FW_root+"?cmd="+encodeURIComponent(val)+"&XHR=1", function(data){
|
||||||
if( !data.match( /^<html>.*<\/html>/ ) ) {
|
if( !data.match( /^<html>[\s\S]*<\/html>/ ) ) {
|
||||||
data = data.replace( '<', '<' );
|
data = data.replace( '<', '<' );
|
||||||
data = '<pre>'+data+'</pre>';
|
data = '<pre>'+data+'</pre>';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user