diff --git a/FHEM/01_FHEMWEB.pm b/FHEM/01_FHEMWEB.pm
index 48fa4bdbf..9ce849b73 100755
--- a/FHEM/01_FHEMWEB.pm
+++ b/FHEM/01_FHEMWEB.pm
@@ -306,6 +306,7 @@ FW_Read($)
(int(@enc) == 1 && $enc[0] =~ m/gzip/) &&
$try_zlib &&
AttrVal($FW_wname, "fwcompress", 1)) {
+Log $ll, "OLEN:".length($FW_RET);
$FW_RET = Compress::Zlib::memGzip($FW_RET);
$compressed = "Content-Encoding: gzip\r\n";
}
@@ -428,12 +429,12 @@ FW_AnswerCall($)
} elsif($arg =~ m,^/(favicon.ico)$,) {
return 0; # TODO!
- }
-
- elsif($arg =~ m,^$FW_ME/icons/(.*)$,) {
+
+ } elsif($arg =~ m,^$FW_ME/icons/(.*)$,) {
my ($icon,$cachable) = ($1, 1);
#Debug "You want $icon which is " . $FW_icons{$icon};
# if we do not have the icon, we convert the device state to the icon name
+ $icon =~ s/\.($ICONEXTENSION)$//;
if(!$FW_icons{$icon}) {
$icon = FW_dev2image($icon);
#Debug "We do not have it and thus use $icon which is ".$FW_icons{$icon};
@@ -489,11 +490,12 @@ FW_AnswerCall($)
$FW_cmdret = $docmd ? FW_fC($cmd) : "";
my @origin = grep /Origin/, @FW_httpheader;
- my $headercors = ($FW_cors ? "Access-Control-Allow-".$origin[0]."\r\n".
- "Access-Control-Allow-Methods: GET, POST, OPTIONS\r\n".
- "Access-Control-Allow-Headers: Origin, Authorization, Accept\r\n".
- "Access-Control-Allow-Credentials: true\r\n".
- "Access-Control-Max-Age:86400\r\n" : "");
+ my $headercors = ($FW_cors ?
+ "Access-Control-Allow-".$origin[0]."\r\n".
+ "Access-Control-Allow-Methods: GET, POST, OPTIONS\r\n".
+ "Access-Control-Allow-Headers: Origin, Authorization, Accept\r\n".
+ "Access-Control-Allow-Credentials: true\r\n".
+ "Access-Control-Max-Age:86400\r\n" : "");
if($FW_inform) { # Longpoll header
$me->{inform} = ($FW_room ? $FW_room : $FW_inform);
@@ -577,7 +579,7 @@ FW_AnswerCall($)
$prf = "smallscreen" if(!$prf && $FW_ss);
$prf = "touchpad" if(!$prf && $FW_tp);
FW_pO "";
- FW_pO ""
+ FW_pO ""
if($FW_plotmode eq "SVG");
FW_pO "";
my $onload = $FW_longpoll ? "onload=\"FW_delayedStart()\"" : "";
diff --git a/www/pgm2/style.css b/www/pgm2/style.css
index 6aabfc123..d2142787d 100644
--- a/www/pgm2/style.css
+++ b/www/pgm2/style.css
@@ -4,7 +4,7 @@ input { font-family:Arial, sans-serif; font-size:16px; }
select { font-family:Arial, sans-serif; font-size:16px; }
#logo { position:fixed; top:10px; left:20px;
- width:100px; height:105px; background-image:url(../icons/fhemicon); }
+ width:100px; height:105px; background-image:url(../icons/fhemicon.png); }
#menu { position:fixed; top:120px;left:20px; width:140px; }
#hdr { position:absolute; top:10px; left:180px; }
#content { position:absolute; top:50px; left:180px; bottom:20px; right:10px; }