When using a system based on CGI::Maypole, if a user types:
http://localhost/cgi-bin/beer.cgi/
they see the frontpage of the database. But if they type
http://localhost/cgi-bin/beer.cgi
they see something like "Internal Server Error".
It seems unreasonable to penalise the user so hard for leaving off a
slash, so I've added a line to CGI::Maypole::parse_location():
$self->{path} .= '/' if $self->{path} eq $loc;
I added this just after the "no warnings" line and it works for me. Can
anybody see a problem? If not, I'd like to propose it for the next version.
Cheers, Dave
_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole
This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT