Ignore trailing slashes in requested URLS. Fixes bug #11865.

This commit is contained in:
Colin Kuskie 2010-09-14 10:01:57 -07:00
parent 1fa03c3ad8
commit 1131a5b4bc
3 changed files with 12 additions and 2 deletions

View file

@ -63,6 +63,7 @@ The URL for this request.
sub dispatch {
my $session = shift;
my $assetUrl = shift;
$assetUrl =~ s{/$}{};
my $permutations = getUrlPermutations($assetUrl);
foreach my $url (@{ $permutations }) {
if (my $asset = getAsset($session, $url)) {