mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 05:50:55 +01:00
Use unique identifier for meme hash
Summary: "a:" plus "b" and "a" plus ":b" created the same ID. Test Plan: Created a meme. Reviewers: DeedyDas, epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D4631
This commit is contained in:
parent
b873f3f991
commit
651929dec1
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ final class PhabricatorMacroMemeController
|
|||
|
||||
$upper_text = strtoupper($upper_text);
|
||||
$lower_text = strtoupper($lower_text);
|
||||
$mixed_text = $upper_text.":".$lower_text;
|
||||
$mixed_text = md5($upper_text).":".md5($lower_text);
|
||||
$hash = "meme".hash("sha256", $mixed_text);
|
||||
$xform = id(new PhabricatorTransformedFile())
|
||||
->loadOneWhere('originalphid=%s and transform=%s',
|
||||
|
|
Loading…
Reference in a new issue