Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15420668
D17719.id42615.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.id42615.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
Sat, Mar 22, 3:59 PM (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7708048
Default Alt Text
D17719.id42615.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