diff --git a/app/Http/Controllers/AdminController.php b/app/Http/Controllers/AdminController.php index b5c43fe..58136ea 100755 --- a/app/Http/Controllers/AdminController.php +++ b/app/Http/Controllers/AdminController.php @@ -721,8 +721,17 @@ public function SendTestMail(Request $request) public function redirectInfo(request $request) { $linkId = $request->id; + + if (empty($linkId)) { + return abort(404); + } + $linkData = Link::find($linkId); + if (empty($linkData)) { + return abort(404); + } + function isValidLink($url) { $validPrefixes = array('http', 'https', 'ftp', 'mailto', 'tel', 'news');