Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Fix routing for media.
Browse files Browse the repository at this point in the history
Allow also dots in media names for the Media details routing.

Fixes #663: crashing if parameter contains a dot
  • Loading branch information
Marco van Wieringen committed May 28, 2016
1 parent c4bab8b commit fe155cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/Media/config/module.config.php
Expand Up @@ -43,7 +43,7 @@
'route' => '/media[/][:action][/][:id]',
'constraints' => array(
'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
'id' => '[a-zA-Z0-9_-]*',
'id' => '[a-zA-Z0-9\._-]*',
),
'defaults' => array(
'controller' => 'Media\Controller\Media',
Expand Down

0 comments on commit fe155cb

Please sign in to comment.