Update AdminController.php
This commit is contained in:
parent
bc287eb7b4
commit
f863cd4257
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in New Issue