1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 09:18:48 +02: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:
epriestley 2015-12-11 10:26:59 -08:00
parent 20d2652d03
commit ab7d3caa00

View file

@ -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',