From 6ad54565c57a62b5a989465957edc369e49d7ba1 Mon Sep 17 00:00:00 2001 From: discomrade <83621080+discomrade@users.noreply.github.com> Date: Sun, 9 Jun 2024 03:06:18 +0000 Subject: [PATCH] [core] allow relative url in contact link --- core/util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/util.php b/core/util.php index aa4efb59..a6086f90 100644 --- a/core/util.php +++ b/core/util.php @@ -41,7 +41,7 @@ function contact_link(?string $contact = null): ?string return "mailto:$text"; } - if (str_contains($text, "/")) { + if (str_contains($text, "/") && mb_substr($text, 0, 1) != "/") { return "https://$text"; }