Merge pull request #9695 from MrPetovan/bug/9291-share-autolink

Restore autolink in share block content in BBCode::convertShare
This commit is contained in:
Michael Vogel 2020-12-22 08:41:26 +01:00 committed by GitHub
commit 9e2ba5e2c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1008,7 +1008,9 @@ class BBCode
$attributes['avatar'] = ProxyUtils::proxifyUrl($attributes['avatar'], false, ProxyUtils::SIZE_THUMB);
}
return $match[1] . $callback($attributes, $author_contact, $match[3], trim($match[1]) != '');
$content = preg_replace(Strings::autoLinkRegEx(), '<a href="$1">$1</a>', $match[3]);
return $match[1] . $callback($attributes, $author_contact, $content, trim($match[1]) != '');
},
$text
);