Skip to content
Snippets Groups Projects
Unverified Commit 8a4504c5 authored by Tim van Dijen's avatar Tim van Dijen Committed by GitHub
Browse files

Be sure of integer type

parent b11d0cfc
No related branches found
No related tags found
No related merge requests found
...@@ -130,7 +130,7 @@ class TimeLimitedToken ...@@ -130,7 +130,7 @@ class TimeLimitedToken
if (count($splittoken) !== 2) { if (count($splittoken) !== 2) {
return false; return false;
} }
$offset = hexdec($splittoken[0]); $offset = intval(hexdec($splittoken[0]));
$value = $splittoken[1]; $value = $splittoken[1];
return ($this->calculateTokenValue($offset) === $value); return ($this->calculateTokenValue($offset) === $value);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment