Skip to content

Commit

Permalink
Cast user_string to string to avoid ErrorException
Browse files Browse the repository at this point in the history
  • Loading branch information
hedii committed Oct 15, 2018
1 parent 7939094 commit d32eae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Routing/UrlGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ public function hasValidSignature(Request $request)

$signature = hash_hmac('sha256', $original, call_user_func($this->keyResolver));

return hash_equals($signature, $request->query('signature', '')) &&
return hash_equals($signature, (string) $request->query('signature', '')) &&
! ($expires && Carbon::now()->getTimestamp() > $expires);
}

Expand Down

0 comments on commit d32eae2

Please sign in to comment.