From 951999957e948eddf03a8bdbc78ea5a940796fb3 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 27 Dec 2024 13:08:09 +0000 Subject: [PATCH] Improve URL detection in searches --- src/Module/Search/Index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Search/Index.php b/src/Module/Search/Index.php index a42f9ddaff..122b6c569b 100644 --- a/src/Module/Search/Index.php +++ b/src/Module/Search/Index.php @@ -273,7 +273,7 @@ class Index extends BaseSearch */ private static function tryRedirectToPost(string $search) { - if (parse_url($search, PHP_URL_SCHEME) == '') { + if (!parse_url($search, PHP_URL_SCHEME) && !preg_match('=^[a-z]+://=', $search)) { return; }