mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +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)
|
public function redirectUrl(Request $request)
|
||||||
{
|
{
|
||||||
|
abort_if(!$request->user(), 404);
|
||||||
$this->validate($request, [
|
$this->validate($request, [
|
||||||
'url' => 'required|url'
|
'url' => 'required|url'
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in a new issue