From 7862d7b68e6097f9e181f1f6a7ce83f55d86aabe Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sat, 14 Mar 2020 09:19:01 -0700 Subject: [PATCH] Be consistent with authenticated version --- unauthenticated/icons.cgi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/unauthenticated/icons.cgi b/unauthenticated/icons.cgi index 1065245..2d878ab 100755 --- a/unauthenticated/icons.cgi +++ b/unauthenticated/icons.cgi @@ -26,4 +26,8 @@ print "Content-length: ",$st[7],"\n"; print "Last-Modified: ",&http_date($st[9]),"\n"; print "Expires: ",&http_date(time()+7*24*60*60),"\n"; print "\n"; -print &read_file_contents("$icons_dir/$icon"); +open(my $ICON, "<", "$icons_dir/$icon"); +while(<$ICON>) { + print $_; + } +close($ICON);