]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
www: fully qualify read_all subroutine call
authorEric Wong <e@80x24.org>
Mon, 23 Oct 2023 08:24:20 +0000 (08:24 +0000)
committerEric Wong <e@80x24.org>
Mon, 23 Oct 2023 17:07:41 +0000 (17:07 +0000)
IMHO, this is not worth importing here since it's only called at
startup.

Fixes: 19b791f4894e (use read_all in more places to improve safety)
lib/PublicInbox/WWW.pm

index 86fd7e227ea087e91fc1646ced19bd687c621de7..183c5df71918af220b432410ef9c7c74ac64a84e 100644 (file)
@@ -14,6 +14,7 @@ package PublicInbox::WWW;
 use strict;
 use v5.10.1;
 use PublicInbox::Config;
+use PublicInbox::Git;
 use PublicInbox::Hval;
 use URI::Escape qw(uri_unescape);
 use PublicInbox::MID qw(mid_escape);
@@ -587,7 +588,7 @@ sub stylesheets_prepare ($$) {
                                next;
                        };
                        my $ctime = 0;
-                       my $local = read_all($fh, -s $fh);
+                       my $local = PublicInbox::Git::read_all($fh, -s $fh);
                        if ($local =~ /\S/) {
                                $ctime = sprintf('%x',(stat(_))[10]);
                                $local = $mini->($local);