Ignore trailing slashes in requested URLS. Fixes bug #11865.
This commit is contained in:
parent
1fa03c3ad8
commit
1131a5b4bc
3 changed files with 12 additions and 2 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue