2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 13:24:56 +00:00

98_SVG.pm: fix & stuff (Forum #80831)

git-svn-id: https://svn.fhem.de/fhem/trunk@15584 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-12-10 12:09:24 +00:00
parent 5eab66ec39
commit 76fc4c3898

View File

@ -5,6 +5,7 @@ package main;
use strict;
use warnings;
use POSIX;
use HttpUtils;
#use Devel::Size qw(size total_size);
# This block is only needed when SVG is loaded bevore FHEMWEB
@ -340,6 +341,7 @@ SVG_txt($$$$)
{
my ($v,$t,$c,$sz) = @_;
$c = "" if(!defined($c));
$c =~ s/&/\&/g;
$c =~ s/"/\"/g;
return "$t&nbsp;<input type=\"text\" name=\"$v\" size=\"$sz\" ".
"value=\"$c\"/>";