1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/16251] Prevent shortened links from overriding other plugins

PHPBB3-16251
This commit is contained in:
JoshyPHP
2019-12-09 02:16:01 +01:00
parent 1f00e160ab
commit 6758190afd
2 changed files with 36 additions and 1 deletions

View File

@@ -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);
}