2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-13 17:26:34 +00:00
git-svn-id: https://svn.fhem.de/fhem/trunk@414 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2009-07-25 15:39:57 +00:00
parent 9adab37920
commit a20e36f1dc
2 changed files with 5 additions and 0 deletions

View File

@ -517,3 +517,4 @@
- bugfix: CUL/HMS changes, HMS cleanup
- bugfix: EM/EMWZ/EMGZ set changed to work in FHEMWEB
- bugfix: Avoid unitialized in xmllist for corrupt readings (reporter: Boris)
- bugfix: Add binmode to 01_fhemweb.pm for windows

View File

@ -147,6 +147,7 @@ FW_Read($)
my @clientsock = sockaddr_in($clientinfo[1]);
my %nhash;
$nhash{NR} = $devcount++;
$nhash{NAME} = "FHEMWEB:". inet_ntoa($clientsock[1]) .":".$clientsock[0];
$nhash{FD} = $clientinfo[0]->fileno();
$nhash{CD} = $clientinfo[0]; # sysread / close won't work on fileno
@ -235,6 +236,7 @@ FW_AnswerCall($)
return 1;
} elsif($arg =~ m,^$__ME/icons/(.*)$,) {
open(FH, "$__dir/$1") || return;
binmode (FH); # necessary for Windows
pO join("", <FH>);
close(FH);
$__RETTYPE = "image/*";
@ -788,6 +790,7 @@ FW_logWrapper($)
pO "<div id=\"right\">$path: $!</div>\n";
return;
}
binmode (FH); # necessary for Windows
my $cnt = join("", <FH>);
close(FH);
$cnt =~ s/</&lt;/g;
@ -972,6 +975,7 @@ FW_showLog($)
}
$__RETTYPE = "image/png";
open(FH, "$tmpfile.png"); # read in the result and send it
binmode (FH); # necessary for Windows
pO join("", <FH>);
close(FH);
unlink("$tmpfile.png");