1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-10 00:42:40 +01:00

Disallow using DD1 as revision ID

Test Plan:
  $ arc inlines --revision 1
  $ arc inlines --revision D1
  $ arc inlines --revision DD1

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D3811
This commit is contained in:
vrana 2012-10-24 11:23:10 -07:00
parent 448e820eb6
commit 2d226f3110

View file

@ -954,7 +954,7 @@ abstract class ArcanistBaseWorkflow {
}
protected function normalizeRevisionID($revision_id) {
return ltrim(strtoupper($revision_id), 'D');
return preg_replace('/^D/i', '', $revision_id);
}
protected function shouldShellComplete() {