Re: Disallow path info

Phillip Hellewell <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <CA+dWQFrJHzRR+b-Q+WO_=0aZOL2q2LN_PeWc40i6EhA_fg9vdA@mail.gmail.com>
Good news.  I got a helpful tip from a Dr James Smith to use a
PerlFixupHandler that looks like this:

package My::Fixup;

use strict;
use warnings;
use utf8;

use Apache2::Const qw(OK NOT_FOUND);

sub handler {
  my $r = shift;
  return NOT_FOUND if $r->path_info;
  return OK;
}

1;

It worked just great!

Phillip
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.