mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
FHEMWEB: display links in command return (by justme1968, forum #22903)
git-svn-id: https://svn.fhem.de/fhem/trunk@5662 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
5c3116dda8
commit
6498e3952a
@ -651,10 +651,25 @@ FW_answerCall($)
|
||||
if($FW_cmdret) {
|
||||
$FW_detail = "";
|
||||
$FW_room = "";
|
||||
$FW_cmdret = FW_htmlEscape($FW_cmdret);
|
||||
$FW_cmdret =~ s/>/>/g;
|
||||
|
||||
if( $FW_cmdret !~ m/<html>.*<\/html>/ ) {
|
||||
$FW_cmdret = FW_htmlEscape($FW_cmdret);
|
||||
|
||||
my @lines = split( /\n/, $FW_cmdret );
|
||||
$FW_cmdret = "";
|
||||
foreach my $line (@lines) {
|
||||
$FW_cmdret .= "\n" if( $FW_cmdret );
|
||||
foreach my $word ( split( / /, $line ) ) {
|
||||
$word = "<a href=\"$FW_ME$FW_subdir?detail=$word\">$word</a>"
|
||||
if( $defs{$word} );
|
||||
$FW_cmdret .= "$word ";
|
||||
}
|
||||
}
|
||||
|
||||
$FW_cmdret = "<pre>$FW_cmdret</pre>" if($FW_cmdret =~ m/\n/);
|
||||
}
|
||||
|
||||
FW_pO "<div id=\"content\">";
|
||||
$FW_cmdret = "<pre>$FW_cmdret</pre>" if($FW_cmdret =~ m/\n/);
|
||||
if($FW_ss) {
|
||||
FW_pO "<div class=\"tiny\">$FW_cmdret</div>";
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user