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 2003/02/17 11:31:41 UTC

cvs commit: xml-axkit/lib/Apache/AxKit/Provider File.pm

matts       2003/02/17 02:31:41

  Modified:    lib/Apache/AxKit/Provider File.pm
  Log:
  Properly handle directories (decline unless it ends in a slash)
  
  Revision  Changes    Path
  1.13      +4 -2      xml-axkit/lib/Apache/AxKit/Provider/File.pm
  
  Index: File.pm
  ===================================================================
  RCS file: /home/cvs/xml-axkit/lib/Apache/AxKit/Provider/File.pm,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- File.pm	4 Jan 2003 18:11:08 -0000	1.12
  +++ File.pm	17 Feb 2003 10:31:41 -0000	1.13
  @@ -160,7 +160,9 @@
       }
   
       if ( $self->_is_dir ) {
  -        if ($AxKit::Cfg->HandleDirs()) {
  +        # process directories if AxHandleDirs is On and dir ends in /
  +        # (otherwise we decline and let apache redirect)
  +        if ($AxKit::Cfg->HandleDirs() && $xmlfile =~ /\/$/) {
   	    my $output = $self->get_dir_xml();
   	    return 0 if (!defined $output);
   	    $self->{dir_xml} = $output;