Page MenuHomePhabricator

D18598.id44656.diff
No OneTemporary

D18598.id44656.diff

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

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)

Event Timeline