Catalyst::Plugin::SanitizeUrl - Make Catalyst not ignore trailing slashes
use Catalyst 'SanitizeUrl';
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.
Sets up $c->{form}
Overrided from Catalyst::Plugin::SanitizeUrl::PrepAction to do the right thing.
This module's name is misleading and problematic. I heard of a better module to achieve the same ends as this module, but lost the reference.
Catalyst
Shlomi Fish, shlomif@iglu.org.il
shlomif@iglu.org.il
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).
To install Catalyst::Plugin::SanitizeUrl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::SanitizeUrl
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::SanitizeUrl
For more information on module installation, please visit the detailed CPAN module installation guide.