aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2019-12-09 02:16:01 +0100
committerJoshyPHP <s9e.dev@gmail.com>2019-12-09 02:16:01 +0100
commit6758190afd7b77d5800fe1e03e87ec4f2f09e91f (patch)
treeff89de003489af32154d3eb14d9658c8ac90b9d3 /phpBB/phpbb
parentMerge pull request #5737 from marc1706/ticket/16211 (diff)
downloadphpbb-6758190afd7b77d5800fe1e03e87ec4f2f09e91f.tar.gz
phpbb-6758190afd7b77d5800fe1e03e87ec4f2f09e91f.tar.bz2
phpbb-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.php2
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);
}