mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-23 20:52:13 +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:
parent
55eca13950
commit
d1c728c7f5
@ -867,7 +867,7 @@ FW_answerCall($)
|
|||||||
$ldir = "$attr{global}{modpath}/docs" if($dir eq "docs");
|
$ldir = "$attr{global}{modpath}/docs" if($dir eq "docs");
|
||||||
|
|
||||||
# pgm2 check is for jquery-ui images
|
# 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);
|
my $fname = ($ext ? "$file.$ext" : $file);
|
||||||
return FW_serveSpecial($file, $ext, $ldir, ($arg =~ m/nocache/) ? 0 : 1)
|
return FW_serveSpecial($file, $ext, $ldir, ($arg =~ m/nocache/) ? 0 : 1)
|
||||||
if(-r "$ldir/$fname" || $static); # no return for FLOORPLAN
|
if(-r "$ldir/$fname" || $static); # no return for FLOORPLAN
|
||||||
@ -876,6 +876,9 @@ FW_answerCall($)
|
|||||||
} elsif($arg =~ m/^$FW_ME(.*)/s) {
|
} elsif($arg =~ m/^$FW_ME(.*)/s) {
|
||||||
$arg = $1; # The stuff behind FW_ME, continue to check for commands/FWEXT
|
$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 {
|
} else {
|
||||||
Log3 $FW_wname, 4, "$FW_wname: redirecting $arg to $FW_ME";
|
Log3 $FW_wname, 4, "$FW_wname: redirecting $arg to $FW_ME";
|
||||||
TcpServer_WriteBlocking($me,
|
TcpServer_WriteBlocking($me,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user