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 2004/04/27 18:57:14 UTC
cvs commit: xml-axkit/lib/Apache/AxKit/Provider File.pm
matts 2004/04/27 09:57:14
Modified: lib/Apache/AxKit/Provider File.pm
Log:
Fix for bug 4499 - don't redirect another level if the dir already ends in a
slash
Revision Changes Path
1.16 +2 -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.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- File.pm 17 Sep 2003 21:58:38 -0000 1.15
+++ File.pm 27 Apr 2004 16:57:14 -0000 1.16
@@ -152,7 +152,7 @@
sub decline {
my $self = shift;
- if ($self->_is_dir) {
+ if ($self->_is_dir and ($self->{apache}->uri !~ /\/$/)) {
$self->{apache}->header_out('Location' => $self->{apache}->uri . "/");
return 302;
}