From: Mischa POSLAWSKY Date: Sat, 29 Aug 2020 16:29:22 +0000 (+0200) Subject: common: fix double html headers on plp errors X-Git-Tag: v1.13~227 X-Git-Url: http://git.shiar.net/sheet.git/commitdiff_plain/69adcf65e2485a578d91c747fc764f3c43834f7b 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? --- 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

'; }