Page MenuHomePhorge

D25449.1732015669.diff
No OneTemporary

D25449.1732015669.diff

diff --git a/src/applications/auth/engine/PhabricatorAuthCSRFEngine.php b/src/applications/auth/engine/PhabricatorAuthCSRFEngine.php
--- a/src/applications/auth/engine/PhabricatorAuthCSRFEngine.php
+++ b/src/applications/auth/engine/PhabricatorAuthCSRFEngine.php
@@ -47,7 +47,10 @@
// We expect a BREACH-mitigating token. See T3684.
$breach_prefix = $this->getBREACHPrefix();
$breach_prelen = strlen($breach_prefix);
- if (strncmp($token, $breach_prefix, $breach_prelen) !== 0) {
+ if (
+ $token === null ||
+ strncmp($token, $breach_prefix, $breach_prelen) !== 0
+ ) {
return false;
}

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 19, 11:27 (21 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
977581
Default Alt Text
D25449.1732015669.diff (635 B)

Event Timeline