From 0037699647feb915a9091a57af1a264777bcaecb Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Wed, 28 May 2008 11:41:13 +0000 Subject: [PATCH] keep SCRIPT_* environment variables in CGI These are now identical to their PLP_* counterparts, and should be used instead for familiarity (why rename for no apparant reason; SCRIPT_* now contain their expected values so no reason to suggest otherwise). Apache already has both. --- lib/PLP.pm | 8 ++++++-- lib/PLP/Backend/CGI.pm | 1 - 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/PLP.pm b/lib/PLP.pm index 03c4acb..acf3871 100644 --- a/lib/PLP.pm +++ b/lib/PLP.pm @@ -364,14 +364,18 @@ These are described in L. =over 22 -=item $ENV{PLP_NAME} +=item $ENV{SCRIPT_NAME} The URI of the PLP document, without the query string. (Example: C) -=item $ENV{PLP_FILENAME} +Used to be renamed to C<$ENV{PLP_NAME}>, which is still provided but deprecated. + +=item $ENV{SCRIPT_FILENAME} The filename of the PLP document. (Example: C) +C<$ENV{PLP_SCRIPT}> also still provided but deprecated. + =item $PLP::VERSION The version of PLP. diff --git a/lib/PLP/Backend/CGI.pm b/lib/PLP/Backend/CGI.pm index 5d45500..0005762 100644 --- a/lib/PLP/Backend/CGI.pm +++ b/lib/PLP/Backend/CGI.pm @@ -48,7 +48,6 @@ sub init { } delete @ENV{ - qw(SCRIPT_NAME SCRIPT_FILENAME), grep /^REDIRECT_/, keys %ENV }; -- 2.30.0