NAME

Catalyst::Plugin::SanitizeUrl - Make sure Catalyst does not ignore trailing slashes

SYNOPSIS

use Catalyst 'SanitizeUrl';

DESCRIPTION

This plugin makes sure Catalyst is not agnostic to trailing slashes in the URLs passed to it by the user agent.

By default Catalyst will treat the following URLs:

http://localhost:3000/one/two

And

http://localhost:3000/one/two/

As the same, even though user agents treat them differently as far as relative URLs are concerned.

This plugin will cause the trailing slashes to be included in the Catalyst path.

EXTENDED METHODS

prepare

Sets up $c->{form}

SEE ALSO

Catalyst

AUTHOR

Shlomi Fish, shlomif@iglu.org.il

COPYRIGHT

This program is free software, you can redistribute it and/or modify it under the terms of the MIT X11 license.

(Just note that the ::PrepAction module is derived from the Catalyst code itself and so is distributed under the same terms as Perl itself).