2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

01_FHEMWEB.pm: better <html> support (Forum #33916)

git-svn-id: https://svn.fhem.de/fhem/trunk@8064 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-02-22 10:53:41 +00:00
parent 0658f70387
commit 219f4ee510

View File

@ -760,8 +760,10 @@ FW_answerCall($)
$FW_detail = "";
$FW_room = "";
# "linkify" output (e.g. for list)
if( $FW_cmdret !~ m/<html>.*<\/html>/ && $cmd !~ m/^help/) {
if( $FW_cmdret =~ m/^<html>(.*)<\/html>$/s ) {
$FW_cmdret = $1;
} else { # "linkify" output (e.g. for list)
$FW_cmdret = FW_htmlEscape($FW_cmdret);
my @lines = split( /\n/, $FW_cmdret ); # Adding links