2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 13:24:56 +00:00

02_HTTPAPI.pm: file read error solved

git-svn-id: https://svn.fhem.de/fhem/trunk@26267 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
klaus.schauer 2022-07-28 18:43:35 +00:00
parent 716b93a85c
commit 98d9f6738d

View File

@ -211,10 +211,10 @@ sub HTTPAPI_CommandRef($) {
my ($hash) = @_;
my @contents;
my $contents;
my $fileName = $gPath . '/03_HTTPAPI.pm';
my $fileName = $gPath . '/02_HTTPAPI.pm';
if(open(INPUTFILE, $fileName)) {
binmode(INPUTFILE);
@contents= <INPUTFILE>;
@contents = <INPUTFILE>;
close(INPUTFILE);
$contents = join("", @contents);
$contents =~ /\n=begin.html([\s\S]*)\n=end.html/gs;