aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2019-04-28 02:43:05 +0200
committerJoshyPHP <s9e.dev@gmail.com>2019-04-28 02:43:05 +0200
commit06a95487feac7a7fae6f9afdd81250fbf5925041 (patch)
tree84aebe553aa69f75b6791265eb3a15984f676b27 /phpBB/phpbb
parentbd2ddc1d2ec3e94a13e397198a8406d81481e9f2 (diff)
downloadforums-06a95487feac7a7fae6f9afdd81250fbf5925041.tar
forums-06a95487feac7a7fae6f9afdd81250fbf5925041.tar.gz
forums-06a95487feac7a7fae6f9afdd81250fbf5925041.tar.bz2
forums-06a95487feac7a7fae6f9afdd81250fbf5925041.tar.xz
forums-06a95487feac7a7fae6f9afdd81250fbf5925041.zip
[ticket/16034] Fix [url=] links being incorrectly shortened
PHPBB3-16034
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/textformatter/s9e/link_helper.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/phpbb/textformatter/s9e/link_helper.php b/phpBB/phpbb/textformatter/s9e/link_helper.php
index 1e113b6449..483794a83e 100644
--- a/phpBB/phpbb/textformatter/s9e/link_helper.php
+++ b/phpBB/phpbb/textformatter/s9e/link_helper.php
@@ -60,8 +60,10 @@ class link_helper
$length = $end - $start;
$text = substr($parser->getText(), $start, $length);
- // Create a tag that consumes the link's text
- $parser->addSelfClosingTag('LINK_TEXT', $start, $length)->setAttribute('text', $text);
+ // Create a tag that consumes the link's text and make it depends on this tag
+ $link_text_tag = $parser->addSelfClosingTag('LINK_TEXT', $start, $length);
+ $link_text_tag->setAttribute('text', $text);
+ $tag->cascadeInvalidationTo($link_text_tag);
}
/**