Permalink
Browse files

Do not do redirect stuff for section if index_handler is IGNORE

  • Loading branch information...
1 parent dcb6077 commit d89a9f7536f12e1885a63e6088668ca16cb756dc @pudge pudge committed Oct 29, 2003
Showing with 4 additions and 4 deletions.
  1. +4 −4 Slash/Apache/Apache.pm
@@ -304,7 +304,7 @@ sub ConnectionIsSecure {
# Non-SSL connection, from a network not known to be secure.
# Call it insecure.
return 0;
- }
+}
sub IndexHandler {
my($r) = @_;
@@ -355,10 +355,10 @@ sub IndexHandler {
my $key = $1;
my $slashdb = getCurrentDB();
my $section = $slashdb->getSection($key);
- if ($section && $section->{id}) {
+ my $index_handler = $section->{index_handler}
+ || $constants->{index_handler};
+ if ($section && $section->{id} && $index_handler ne 'IGNORE') {
my $basedir = $constants->{basedir};
- my $index_handler = $section->{index_handler}
- || $constants->{index_handler};
# $USER_MATCH defined above
if ($dbon && $r->header_in('Cookie') =~ $USER_MATCH) {

0 comments on commit d89a9f7

Please sign in to comment.