mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-13 17:26:34 +00:00
binmode
git-svn-id: https://svn.fhem.de/fhem/trunk@414 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9adab37920
commit
a20e36f1dc
@ -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
|
||||
|
@ -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/</</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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user