You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axkit-dev@xml.apache.org by ma...@apache.org on 2002/06/08 14:01:19 UTC

cvs commit: xml-axkit/lib AxKit.pm

matts       2002/06/08 05:01:19

  Modified:    lib      AxKit.pm
  Log:
  Uncommented path_info stuff again
  
  Revision  Changes    Path
  1.20      +8 -7      xml-axkit/lib/AxKit.pm
  
  Index: AxKit.pm
  ===================================================================
  RCS file: /home/cvs/xml-axkit/lib/AxKit.pm,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- AxKit.pm	5 Jun 2002 23:59:19 -0000	1.19
  +++ AxKit.pm	8 Jun 2002 12:01:19 -0000	1.20
  @@ -1,4 +1,4 @@
  -# $Id: AxKit.pm,v 1.19 2002/06/05 23:59:19 jwalt Exp $
  +# $Id: AxKit.pm,v 1.20 2002/06/08 12:01:19 matts Exp $
   
   package AxKit;
   use strict;
  @@ -440,12 +440,13 @@
           }
       }
       
  -    # Someone help me remember why I added this???
  -    # my $uri = $r->uri();
  -    # my $path_info = $r->path_info();
  -    # $uri =~ s/\Q$path_info\E$//;
  -    # $r->uri($uri);
  -    # $ENV{PATH_INFO} = $path_info
  +    # This is here so that lookup_uri() works on the real thing
  +    # that we're requesting, not on the thing plus the PATH_INFO
  +    my $uri = $r->uri();
  +    my $path_info = $r->path_info();
  +    $uri =~ s/\Q$path_info\E$//;
  +    $r->uri($uri);
  +    $ENV{PATH_INFO} = $path_info;
   
       {
           # copy styles because we blat the copy