From: Mischa POSLAWSKY Date: Tue, 3 Jun 2008 07:32:42 +0000 (+0000) Subject: do not require server signature on page error X-Git-Tag: 3.22_02~4 X-Git-Url: http://git.shiar.net/perl/plp/.git/commitdiff_plain/6db00316eea58801d93d78985f92ef97893903c9 do not require server signature on page error In rare cases, SERVER_SIGNATURE may not be set. This isn't a problem, but we need to check for definedness to prevent warnings. --- diff --git a/lib/PLP.pm b/lib/PLP.pm index d17c9c6..2e740cf 100644 --- a/lib/PLP.pm +++ b/lib/PLP.pm @@ -76,7 +76,9 @@ sub error { print "Status: $type\nContent-Type: text/html\n\n", qq{\n}, "\n$type $short\n\n

$short", - "

\n$long

\n


\n$ENV{SERVER_SIGNATURE}"; + "\n$long

\n


\n"; + print $ENV{SERVER_SIGNATURE} if $ENV{SERVER_SIGNATURE}; + print ""; } }