Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14836272
D13167.id31827.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
594 B
Referenced Files
None
Subscribers
None
D13167.id31827.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D13167: Use a class constant instead of a hardcoded string
Attached
Detach File
Event Timeline
Log In to Comment