mirror of
https://github.com/friendica/friendica
synced 2025-01-08 11:24:43 +00:00
Merge pull request #14629 from annando/uri-search
Improve URL detection in searches
This commit is contained in:
commit
f29c927b75
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue