We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c55089 commit 50efe4dCopy full SHA for 50efe4d
Middleware/CsrfGuard.php
@@ -54,7 +54,7 @@ public function call() {
54
*/
55
public function check() {
56
// Create token
57
- if ( session_id() === "" ){
+ if ( session_id() !== "" ){
58
if ( ! isset( $_SESSION[ $this->key ] ) ){
59
$_SESSION[ $this->key ] = sha1( serialize( $_SERVER ) . rand( 0, 0xffffffff ) );
60
}
0 commit comments