Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18838607
D17719.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
743 B
Referenced Files
None
Subscribers
None
D17719.diff
View Options
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);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 28 2025, 11:44 AM (14 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8614574
Default Alt Text
D17719.diff (743 B)
Attached To
Mode
D17719: Raise a tailored error message on "show-outbound --id cat"
Attached
Detach File
Event Timeline
Log In to Comment