• Bug#265787: archzoom: gets Location: wrong with apache2 and https

    From James Troup@1:229/2 to All on Sun Aug 15 01:30:10 2004
    From: [email protected]

    Package: archzoom
    Version: 0.3.0-1
    Tags: patch

    apache2, at least, seems to set HTTPS to 'on' rather than 'ON' which
    breaks archzoom's redirection stuff. A "works for me" patch is
    attached.

    --
    James

    --- archzoom-0.3.0/perllib/ArchZoom/LiteCGI.pm.orig 2004-08-14 23:54:09.970719961 +0100
    +++ archzoom-0.3.0/perllib/ArchZoom/LiteCGI.pm 2004-08-14 23:54:22.738984998 +0100
    @@ -36,7 +36,7 @@
    $script_name = "/$script_name" unless $script_name =~ /^\//;

    my $proto = "http";
    - $proto = "https" if $ENV{HTTPS} && $ENV{HTTPS} eq "ON"
    + $proto = "https" if $ENV{HTTPS} && ($ENV{HTTPS} eq "ON" || $ENV{HTTPS} eq "on")
    || $ENV{'SERVER_PROTOCOL'} && $ENV{'SERVER_PROTOCOL'} =~ /^https/i;
    my $default_port = $proto eq "https"? 443: 80;
    my $server_name = $ENV{SERVER_NAME} || "localhost";


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Christian Robottom Reis@1:229/2 to All on Sun Aug 15 02:30:11 2004
    From: [email protected]

    James, I would like to congratulate you on your work on this patch. I
    attest it fixes the issues we've encountered locally.

    Take care,
    --
    Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3361 2331


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)