[core] allow relative url in contact link

This commit is contained in:
discomrade 2024-06-09 03:06:18 +00:00 committed by Shish
parent de05ca448f
commit 6ad54565c5

View file

@ -41,7 +41,7 @@ function contact_link(?string $contact = null): ?string
return "mailto:$text"; return "mailto:$text";
} }
if (str_contains($text, "/")) { if (str_contains($text, "/") && mb_substr($text, 0, 1) != "/") {
return "https://$text"; return "https://$text";
} }