aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-05-02 19:41:32 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-05-02 19:41:32 +0200
commitccf5575dd800ae1c3754f747a9b4d47e2542746b (patch)
tree06ad551debabb89918dfa3e7b8585a090957c27b /phpBB
parent21b52567408341fcb69baae66c051f4d0a0e256b (diff)
parent06a95487feac7a7fae6f9afdd81250fbf5925041 (diff)
downloadforums-ccf5575dd800ae1c3754f747a9b4d47e2542746b.tar
forums-ccf5575dd800ae1c3754f747a9b4d47e2542746b.tar.gz
forums-ccf5575dd800ae1c3754f747a9b4d47e2542746b.tar.bz2
forums-ccf5575dd800ae1c3754f747a9b4d47e2542746b.tar.xz
forums-ccf5575dd800ae1c3754f747a9b4d47e2542746b.zip
Merge pull request #5577 from JoshyPHP/ticket/16034
[ticket/16034] Fix [url=] links being incorrectly shortened
Diffstat (limited to '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);
}
/**