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);