From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 07D811F452 for ; Mon, 23 Oct 2023 08:24:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1698049461; bh=QvO4mDZQzQ0+c7vwjldV4E3ykfJsWO5Vm7zEWyr49g0=; h=From:To:Subject:Date:From; b=mVLILgnylmKPFiqy6aTGxG+BxlBETrsE4ShEPH1ZmMG8CUfQ3FA4A8vA9oJx+OJuK 2dWkr2GV2Ng8yNnjernwiYbIObXLS72uAklvoNLgePN51FOdRJvT2KbSSt7jq3pV5M QLnspB3+LnjnVjUt8ahr8MfZQz6WLpICqVj0F6xA= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] www: fully qualify read_all subroutine call Date: Mon, 23 Oct 2023 08:24:20 +0000 Message-ID: <20231023082420.1569142-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm index 86fd7e22..183c5df7 100644 --- a/lib/PublicInbox/WWW.pm +++ b/lib/PublicInbox/WWW.pm @@ -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);