Fixed mail links

This commit is contained in:
Julian Prieber 2022-07-15 19:37:34 +02:00
parent 564a9d160b
commit b835101292
1 changed files with 2 additions and 0 deletions

View File

@ -109,6 +109,8 @@ class UserController extends Controller
if ($request->button == 'phone')
$link1 = 'tel:' . $request->link;
elseif ($request->button == 'default email' or $request->button == 'default email_alt')
$link1 = 'mailto:' . $request->link;
elseif (stringStartsWith($request->link,'http://') == 'true' or stringStartsWith($request->link,'https://') == 'true')
$link1 = $request->link;
else