Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15466359
D18598.id44656.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
947 B
Referenced Files
None
Subscribers
None
D18598.id44656.diff
View Options
diff --git a/src/applications/differential/editor/DifferentialTransactionEditor.php b/src/applications/differential/editor/DifferentialTransactionEditor.php
--- a/src/applications/differential/editor/DifferentialTransactionEditor.php
+++ b/src/applications/differential/editor/DifferentialTransactionEditor.php
@@ -766,10 +766,12 @@
}
if ($config_attach) {
- $name = pht('D%s.%s.patch', $object->getID(), $diff->getID());
- $mime_type = 'text/x-patch; charset=utf-8';
- $body->addAttachment(
- new PhabricatorMetaMTAAttachment($patch, $name, $mime_type));
+ if (strlen($patch) < $body_limit) {
+ $name = pht('D%s.%s.patch', $object->getID(), $diff->getID());
+ $mime_type = 'text/x-patch; charset=utf-8';
+ $body->addAttachment(
+ new PhabricatorMetaMTAAttachment($patch, $name, $mime_type));
+ }
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 4, 4:40 AM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7731361
Default Alt Text
D18598.id44656.diff (947 B)
Attached To
Mode
D18598: Stop the bleeding caused by attaching enormous patches to revision mail
Attached
Detach File
Event Timeline
Log In to Comment