diff --git a/src/applications/metamta/management/PhabricatorMailManagementShowOutboundWorkflow.php b/src/applications/metamta/management/PhabricatorMailManagementShowOutboundWorkflow.php --- a/src/applications/metamta/management/PhabricatorMailManagementShowOutboundWorkflow.php +++ b/src/applications/metamta/management/PhabricatorMailManagementShowOutboundWorkflow.php @@ -37,6 +37,15 @@ '--id')); } + foreach ($ids as $id) { + if (!ctype_digit($id)) { + throw new PhutilArgumentUsageException( + pht( + 'Argument "%s" is not a valid message ID.', + $id)); + } + } + $messages = id(new PhabricatorMetaMTAMail())->loadAllWhere( 'id IN (%Ld)', $ids);