Skip to content

Commit

Permalink
Update SessionUtils.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zahycz committed Oct 1, 2020
1 parent 18b38c2 commit d1d4f03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SessionUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private static function unserialize_php(string $session_data): array {
$offset = 0;
while ($offset < strlen($session_data)) {
if (!strstr(substr($session_data, $offset), "|")) {
throw new Exception("invalid data, remaining: " . substr($session_data, $offset));
throw new \Exception("invalid data, remaining: " . substr($session_data, $offset));
}
$pos = strpos($session_data, "|", $offset);
$num = $pos - $offset;
Expand Down Expand Up @@ -84,4 +84,4 @@ private static function unserialize_phpbinary(string $session_data): array {
}
return $return_data;
}
}
}

0 comments on commit d1d4f03

Please sign in to comment.