From 5153fcc9f114f96ea2b84d78123dd5941f2cc8dc Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Tue, 8 Jun 2021 18:03:30 +0200 Subject: [PATCH] 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 --- html/cgi-bin/fireinfo.cgi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 < - + -- 2.39.5