mirror of
https://github.com/friendica/friendica
synced 2025-01-23 12:59:50 +00:00
Improve URL detection in searches
This commit is contained in:
parent
1b3ba3199e
commit
951999957e
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…
Add table
Reference in a new issue