Changeset View
Changeset View
Standalone View
Standalone View
src/applications/metamta/receiver/PhabricatorObjectMailReceiver.php
Show First 20 Lines • Show All 195 Lines • ▼ Show 20 Lines | private function loadObjectFromMail( | ||||
return $this->loadObject( | return $this->loadObject( | ||||
phutil_utf8_strtoupper($parts['pattern']), | phutil_utf8_strtoupper($parts['pattern']), | ||||
$sender); | $sender); | ||||
} | } | ||||
public static function computeMailHash($mail_key, $phid) { | public static function computeMailHash($mail_key, $phid) { | ||||
$global_mail_key = PhabricatorEnv::getEnvConfig('phabricator.mail-key'); | $global_mail_key = PhabricatorEnv::getEnvConfig('phabricator.mail-key'); | ||||
$hash = PhabricatorHash::digest($mail_key.$global_mail_key.$phid); | $hash = PhabricatorHash::weakDigest($mail_key.$global_mail_key.$phid); | ||||
return substr($hash, 0, 16); | return substr($hash, 0, 16); | ||||
} | } | ||||
} | } |