mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 16:24:29 +00:00
Update SiteController, only allow redirects for logged in users
This commit is contained in:
parent
10b178c8ee
commit
7d376c64ec
1 changed files with 1 additions and 0 deletions
|
@ -109,6 +109,7 @@ class SiteController extends Controller
|
|||
|
||||
public function redirectUrl(Request $request)
|
||||
{
|
||||
abort_if(!$request->user(), 404);
|
||||
$this->validate($request, [
|
||||
'url' => 'required|url'
|
||||
]);
|
||||
|
|
Loading…
Reference in a new issue