2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-09 20:57:11 +00:00

01_FHEMWEB.pm: do not escape attr val if enclosed in <html> (Forum #122261)

git-svn-id: https://svn.fhem.de/fhem/trunk@24819 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2021-08-02 07:25:30 +00:00
parent fab75d7990
commit ae01388c1b

View File

@ -1408,7 +1408,11 @@ FW_makeTable($$$@)
FW_pO "<td><div $ifidts>$t</div></td>";
}
} else {
$val = FW_htmlEscape($val);
if($val =~ m,^<html>(.*)</html>$,) {
$val = $1;
} else {
$val = FW_htmlEscape($val);
}
my $tattr = "informId=\"$name-$prefix$n\" class=\"dval\"";
# if possible provide some links