From 69adcf65e2485a578d91c747fc764f3c43834f7b Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sat, 29 Aug 2020 18:29:22 +0200 Subject: [PATCH] common: fix double html headers on plp errors The exception added in commit v1.9-254-g560ad76852 (2017-05-29) [common: html page headers on plp errors] seems unneeded (now?); maybe for different server/version/environment setup? --- common.inc.plp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.inc.plp b/common.inc.plp index d0e1c32..b8dac37 100644 --- a/common.inc.plp +++ b/common.inc.plp @@ -198,7 +198,7 @@ BEGIN { $PLP::ERROR = sub { my ($text, $html) = @_; warn $text; - unless ($PLP::sentheaders and $PLP::sentheaders->[0] !~ m{/PLP\.pm$}) { + unless ($PLP::sentheaders) { Html({nocache => 1}); say '

Page unavailable

'; } -- 2.30.0