Update AdminController.php

This commit is contained in:
Julian Prieber 2023-10-18 23:58:52 +02:00
parent bc287eb7b4
commit f863cd4257
1 changed files with 9 additions and 0 deletions

View File

@ -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');