keep SCRIPT_* environment variables in CGI
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 28 May 2008 11:41:13 +0000 (11:41 +0000)
committerMischa POSLAWSKY <perl@shiar.org>
Wed, 28 May 2008 11:55:16 +0000 (11:55 +0000)
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
lib/PLP/Backend/CGI.pm

index 03c4acbe38a48d40b5b4eda076ea591a19951081..acf38711bf0be81f64f5752cc1c2087d379febf0 100644 (file)
@@ -364,14 +364,18 @@ These are described in L<PLP::Functions>.
 
 =over 22
 
-=item $ENV{PLP_NAME}
+=item $ENV{SCRIPT_NAME}
 
 The URI of the PLP document, without the query string. (Example: C</foo.plp>)
 
-=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</var/www/index.plp>)
 
+C<$ENV{PLP_SCRIPT}> also still provided but deprecated.
+
 =item $PLP::VERSION
 
 The version of PLP.
index 5d45500403a6cc4d51074c5808305f749d534554..0005762dd5fe5d66cfedbfb0cc702cc4cfcc7b2b 100644 (file)
@@ -48,7 +48,6 @@ sub init {
        }
 
        delete @ENV{
-               qw(SCRIPT_NAME SCRIPT_FILENAME),
                grep /^REDIRECT_/, keys %ENV
        };