Ignore trailing slashes in requested URLS. Fixes bug #11865.
This commit is contained in:
parent
35412fbead
commit
0d2c4d6ba8
3 changed files with 11 additions and 1 deletions
|
|
@ -61,6 +61,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