Page MenuHomePhabricator

D13167.id31827.diff
No OneTemporary

D13167.id31827.diff

diff --git a/src/applications/people/storage/PhabricatorUser.php b/src/applications/people/storage/PhabricatorUser.php
--- a/src/applications/people/storage/PhabricatorUser.php
+++ b/src/applications/people/storage/PhabricatorUser.php
@@ -355,7 +355,8 @@
// discussion in T3684.
$token = $this->getRawCSRFToken();
$hash = PhabricatorHash::digest($token, $salt);
- return 'B@'.$salt.substr($hash, 0, self::CSRF_TOKEN_LENGTH);
+ return self::CSRF_BREACH_PREFIX.$salt.substr(
+ $hash, 0, self::CSRF_TOKEN_LENGTH);
}
public function validateCSRFToken($token) {

File Metadata

Mime Type
text/plain
Expires
Sat, Feb 1, 1:26 AM (4 h, 37 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7079714
Default Alt Text
D13167.id31827.diff (594 B)

Event Timeline