From: Michael Date: Fri, 27 Dec 2024 13:08:09 +0000 (+0000) Subject: Improve URL detection in searches X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=951999957e948eddf03a8bdbc78ea5a940796fb3;p=friendica.git Improve URL detection in searches --- 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; }