Commit e6f84bff by Taylor Otwell

added integer validation check to user auth closure.

parent 17385697
...@@ -21,7 +21,10 @@ return array( ...@@ -21,7 +21,10 @@ return array(
'user' => function($id) 'user' => function($id)
{ {
if ( ! is_null($id)) return User::find($id); if ( ! is_null($id) and filter_var($id, FILTER_VALIDATE_INT) !== false)
{
return User::find($id);
}
}, },
/* /*
......
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