mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Tighten up Phragment routes to prevent page crashes
Summary: Fixes T5418. These routes were a little more permissive than they should have been. Test Plan: Hit those URLs without a path, got a 404 instead. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: epriestley, Korvin, hach-que Maniphest Tasks: T5418 Differential Revision: https://secure.phabricator.com/D9635
This commit is contained in:
parent
baf4d451aa
commit
5013969a54
1 changed files with 5 additions and 5 deletions
|
@ -36,11 +36,11 @@ final class PhabricatorApplicationPhragment extends PhabricatorApplication {
|
|||
'' => 'PhragmentBrowseController',
|
||||
'browse/(?P<dblob>.*)' => 'PhragmentBrowseController',
|
||||
'create/(?P<dblob>.*)' => 'PhragmentCreateController',
|
||||
'update/(?P<dblob>.*)' => 'PhragmentUpdateController',
|
||||
'policy/(?P<dblob>.*)' => 'PhragmentPolicyController',
|
||||
'history/(?P<dblob>.*)' => 'PhragmentHistoryController',
|
||||
'zip/(?P<dblob>.*)' => 'PhragmentZIPController',
|
||||
'zip@(?P<snapshot>[^/]+)/(?P<dblob>.*)' => 'PhragmentZIPController',
|
||||
'update/(?P<dblob>.+)' => 'PhragmentUpdateController',
|
||||
'policy/(?P<dblob>.+)' => 'PhragmentPolicyController',
|
||||
'history/(?P<dblob>.+)' => 'PhragmentHistoryController',
|
||||
'zip/(?P<dblob>.+)' => 'PhragmentZIPController',
|
||||
'zip@(?P<snapshot>[^/]+)/(?P<dblob>.+)' => 'PhragmentZIPController',
|
||||
'version/(?P<id>[0-9]*)/' => 'PhragmentVersionController',
|
||||
'patch/(?P<aid>[0-9x]*)/(?P<bid>[0-9]*)/' => 'PhragmentPatchController',
|
||||
'revert/(?P<id>[0-9]*)/(?P<dblob>.*)' => 'PhragmentRevertController',
|
||||
|
|
Loading…
Reference in a new issue