Commit bdb83922 authored by Taylor Otwell's avatar Taylor Otwell

Check type of token.

parent 0a01aca6
......@@ -33,7 +33,7 @@ class VerifyCsrfToken implements Middleware {
*/
protected function tokensMatch($request)
{
return $request->session()->token() == $request->input('_token');
return $request->session()->token() === $request->input('_token');
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment