Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14351960
D14455.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
657 B
Referenced Files
None
Subscribers
None
D14455.diff
View Options
diff --git a/src/applications/metamta/receiver/PhabricatorObjectMailReceiver.php b/src/applications/metamta/receiver/PhabricatorObjectMailReceiver.php
--- a/src/applications/metamta/receiver/PhabricatorObjectMailReceiver.php
+++ b/src/applications/metamta/receiver/PhabricatorObjectMailReceiver.php
@@ -126,7 +126,7 @@
$expect_hash = self::computeMailHash($object->getMailKey(), $check_phid);
- if ($expect_hash != $parts['hash']) {
+ if (!phutil_hashes_are_identical($expect_hash, $parts['hash'])) {
throw new PhabricatorMetaMTAReceivedMailProcessingException(
MetaMTAReceivedMailStatus::STATUS_HASH_MISMATCH,
pht(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 11:59 AM (21 h, 19 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6910307
Default Alt Text
D14455.diff (657 B)
Attached To
Mode
D14455: Fix a potentially lax hash comparison
Attached
Detach File
Event Timeline
Log In to Comment