From 6db00316eea58801d93d78985f92ef97893903c9 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 3 Jun 2008 07:32:42 +0000 Subject: [PATCH] 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. --- lib/PLP.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ""; } } -- 2.30.0