2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

01_FHEMWEB.pm: FTUI related patches from setstate (Forum #115823)

git-svn-id: https://svn.fhem.de/fhem/trunk@23162 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2020-11-15 11:52:59 +00:00
parent 55eca13950
commit d1c728c7f5

View File

@ -867,7 +867,7 @@ FW_answerCall($)
$ldir = "$attr{global}{modpath}/docs" if($dir eq "docs");
# pgm2 check is for jquery-ui images
my $static = ($ext =~ m/(css|js|png|jpg)/i || $dir =~ m/^pgm2/);
my $static = ($ext =~ m/(css|js|png|jpg|html|svg)/i || $dir =~ m/^pgm2/);
my $fname = ($ext ? "$file.$ext" : $file);
return FW_serveSpecial($file, $ext, $ldir, ($arg =~ m/nocache/) ? 0 : 1)
if(-r "$ldir/$fname" || $static); # no return for FLOORPLAN
@ -876,6 +876,9 @@ FW_answerCall($)
} elsif($arg =~ m/^$FW_ME(.*)/s) {
$arg = $1; # The stuff behind FW_ME, continue to check for commands/FWEXT
} elsif($arg =~ m,^/favicon.ico$,) {
return FW_serveSpecial("favicon", "ico", "$FW_icondir/default", 1);
} else {
Log3 $FW_wname, 4, "$FW_wname: redirecting $arg to $FW_ME";
TcpServer_WriteBlocking($me,