mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +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() {
|
public function getRoutes() {
|
||||||
return array(
|
return array(
|
||||||
'/U(?P<id>[1-9]\d*)' => 'PhabricatorPhurlURLViewController',
|
'/U(?P<id>[1-9]\d*)/?' => 'PhabricatorPhurlURLViewController',
|
||||||
'/u/(?P<id>[1-9]\d*)' => 'PhabricatorPhurlURLAccessController',
|
'/u/(?P<id>[1-9]\d*)/?' => 'PhabricatorPhurlURLAccessController',
|
||||||
'/u/(?P<alias>[^/]+)' => 'PhabricatorPhurlURLAccessController',
|
'/u/(?P<alias>[^/]+)/?' => 'PhabricatorPhurlURLAccessController',
|
||||||
'/phurl/' => array(
|
'/phurl/' => array(
|
||||||
'(?:query/(?P<queryKey>[^/]+)/)?'
|
'(?:query/(?P<queryKey>[^/]+)/)?'
|
||||||
=> 'PhabricatorPhurlURLListController',
|
=> 'PhabricatorPhurlURLListController',
|
||||||
|
|
Loading…
Reference in a new issue