mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 22:10:55 +01:00
Allow Phurl short aliases to accept trailing /
characters
Summary: Fixes T9963. Test Plan: Visited `/u/x/` and `/u/x`. Reviewers: chad Reviewed By: chad Maniphest Tasks: T9963 Differential Revision: https://secure.phabricator.com/D14742
This commit is contained in:
parent
20d2652d03
commit
ab7d3caa00
1 changed files with 3 additions and 3 deletions
|
@ -35,9 +35,9 @@ final class PhabricatorPhurlApplication extends PhabricatorApplication {
|
|||
|
||||
public function getRoutes() {
|
||||
return array(
|
||||
'/U(?P<id>[1-9]\d*)' => 'PhabricatorPhurlURLViewController',
|
||||
'/u/(?P<id>[1-9]\d*)' => 'PhabricatorPhurlURLAccessController',
|
||||
'/u/(?P<alias>[^/]+)' => 'PhabricatorPhurlURLAccessController',
|
||||
'/U(?P<id>[1-9]\d*)/?' => 'PhabricatorPhurlURLViewController',
|
||||
'/u/(?P<id>[1-9]\d*)/?' => 'PhabricatorPhurlURLAccessController',
|
||||
'/u/(?P<alias>[^/]+)/?' => 'PhabricatorPhurlURLAccessController',
|
||||
'/phurl/' => array(
|
||||
'(?:query/(?P<queryKey>[^/]+)/)?'
|
||||
=> 'PhabricatorPhurlURLListController',
|
||||
|
|
Loading…
Reference in a new issue