Skip to content

Commit f863cd4

Browse files
committed
Update AdminController.php
1 parent bc287eb commit f863cd4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

app/Http/Controllers/AdminController.php

+9
Original file line numberDiff line numberDiff line change
@@ -721,8 +721,17 @@ public function authAsID(request $request)
721721
public function redirectInfo(request $request)
722722
{
723723
$linkId = $request->id;
724+
725+
if (empty($linkId)) {
726+
return abort(404);
727+
}
728+
724729
$linkData = Link::find($linkId);
725730

731+
if (empty($linkData)) {
732+
return abort(404);
733+
}
734+
726735
function isValidLink($url) {
727736
$validPrefixes = array('http', 'https', 'ftp', 'mailto', 'tel', 'news');
728737

0 commit comments

Comments
 (0)