mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-03-22 22:40:04 +01:00
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…
x
Reference in New Issue
Block a user