Skip to content

Commit

Permalink
Merge pull request #8 from banujan6/patch/unhandled-offset
Browse files Browse the repository at this point in the history
Patch/unhandled offset
  • Loading branch information
banujan6 committed May 7, 2020
2 parents 57e5bf9 + 627de48 commit 4fb127c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/vendor/
.idea/
6 changes: 3 additions & 3 deletions src/csrfhandler/csrf.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
Thanks : http://itman.in - getRealIpAddr();
*/
namespace csrfhandler;
class csrf{
class csrf {

private static function startSession()
{
if(!isset($_SESSION['X-CSRF-TOKEN-LIST'])){
session_start();
$_SESSION['X-CSRF-TOKEN-LIST'] = null; // initializing the index
}
}

Expand Down Expand Up @@ -166,5 +167,4 @@ public static function flushToken()
$_SESSION['X-CSRF-TOKEN-LIST'] = null;
}
}

?>

0 comments on commit 4fb127c

Please sign in to comment.