IkiWiki::Wrapper: allow REDIRECT_STATUS and REDIRECT_URL through from environment
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
Sat, 31 Jan 2009 18:06:44 +0000 (18:06 +0000)
committerSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
Sat, 31 Jan 2009 18:06:44 +0000 (18:06 +0000)
This is useful to act as an Apache 404 ErrorDocument.

IkiWiki/Wrapper.pm

index dd9971a34f8a5835b9b5b2bb1f698ef7b4f6e17e..8a6340f58c4f1ec5a6b77587672e0721f0f250c7 100644 (file)
@@ -28,7 +28,8 @@ sub gen_wrapper () {
        my @envsave;
        push @envsave, qw{REMOTE_ADDR QUERY_STRING REQUEST_METHOD REQUEST_URI
                       CONTENT_TYPE CONTENT_LENGTH GATEWAY_INTERFACE
-                      HTTP_COOKIE REMOTE_USER HTTPS} if $config{cgi};
+                      HTTP_COOKIE REMOTE_USER HTTPS REDIRECT_STATUS
+                      REDIRECT_URL} if $config{cgi};
        my $envsave="";
        foreach my $var (@envsave) {
                $envsave.=<<"EOF";