From: Stefan Schantl Date: Tue, 8 Jun 2021 16:03:30 +0000 (+0200) Subject: fireinfo.cgi: Fix read-in profile data. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5153fcc9f114f96ea2b84d78123dd5941f2cc8dc;p=people%2Fms%2Fipfire-2.x.git fireinfo.cgi: Fix read-in profile data. To read-in the whole file content the data type needs to be an array. Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/fireinfo.cgi b/html/cgi-bin/fireinfo.cgi index 99952be2eb..e0221c5be7 100644 --- a/html/cgi-bin/fireinfo.cgi +++ b/html/cgi-bin/fireinfo.cgi @@ -117,9 +117,8 @@ END # Read pregenerated profile data open(FILE, "/var/ipfire/fireinfo/profile"); -my $profile = ; +my @profile = ; close(FILE); -chomp($profile); print "
\n"; @@ -170,7 +169,7 @@ print < - +