diff options
author | JoshyPHP <s9e.dev@gmail.com> | 2019-12-09 02:16:01 +0100 |
---|---|---|
committer | JoshyPHP <s9e.dev@gmail.com> | 2019-12-09 02:16:01 +0100 |
commit | 6758190afd7b77d5800fe1e03e87ec4f2f09e91f (patch) | |
tree | ff89de003489af32154d3eb14d9658c8ac90b9d3 /phpBB/phpbb | |
parent | 1f00e160ab69b2a709793abc1829cc6e91e07b93 (diff) | |
download | forums-6758190afd7b77d5800fe1e03e87ec4f2f09e91f.tar forums-6758190afd7b77d5800fe1e03e87ec4f2f09e91f.tar.gz forums-6758190afd7b77d5800fe1e03e87ec4f2f09e91f.tar.bz2 forums-6758190afd7b77d5800fe1e03e87ec4f2f09e91f.tar.xz forums-6758190afd7b77d5800fe1e03e87ec4f2f09e91f.zip |
[ticket/16251] Prevent shortened links from overriding other plugins
PHPBB3-16251
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r-- | phpBB/phpbb/textformatter/s9e/link_helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/textformatter/s9e/link_helper.php b/phpBB/phpbb/textformatter/s9e/link_helper.php index 483794a83e..1cd5dd2fa7 100644 --- a/phpBB/phpbb/textformatter/s9e/link_helper.php +++ b/phpBB/phpbb/textformatter/s9e/link_helper.php @@ -61,7 +61,7 @@ class link_helper $text = substr($parser->getText(), $start, $length); // 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 = $parser->addSelfClosingTag('LINK_TEXT', $start, $length, 10); $link_text_tag->setAttribute('text', $text); $tag->cascadeInvalidationTo($link_text_tag); } |