1
0
Fork 0
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:
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() { 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',