Merge pull request #12445 from MrPetovan/bug/12382-tag-attachment
Exclude [attachment] from tag search
This commit is contained in:
commit
44b2b97e80
1 changed files with 1 additions and 1 deletions
|
@ -2355,7 +2355,7 @@ class BBCode
|
||||||
DI::profiler()->startRecording('rendering');
|
DI::profiler()->startRecording('rendering');
|
||||||
$ret = [];
|
$ret = [];
|
||||||
|
|
||||||
self::performWithEscapedTags($string, ['noparse', 'pre', 'code', 'img'], function ($string) use (&$ret) {
|
self::performWithEscapedTags($string, ['noparse', 'pre', 'code', 'img', 'attachment'], function ($string) use (&$ret) {
|
||||||
// Convert hashtag links to hashtags
|
// Convert hashtag links to hashtags
|
||||||
$string = preg_replace('/#\[url\=([^\[\]]*)\](.*?)\[\/url\]/ism', '#$2 ', $string);
|
$string = preg_replace('/#\[url\=([^\[\]]*)\](.*?)\[\/url\]/ism', '#$2 ', $string);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue