diff --git a/unauthenticated/icons.cgi b/unauthenticated/icons.cgi index 1dea66d..1065245 100755 --- a/unauthenticated/icons.cgi +++ b/unauthenticated/icons.cgi @@ -26,9 +26,4 @@ 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"; -open(my $ICON, "$icons_dir/$icon"); -while(<$ICON>) { - print $_; - } -close($ICON); - +print &read_file_contents("$icons_dir/$icon");