Merge "Parser: Fix quadratic regexp edge case"

This commit is contained in:
jenkins-bot 2022-11-10 00:02:43 +00:00 committed by Gerrit Code Review
commit 5b0fb2f8b2

View file

@ -499,7 +499,7 @@ class Parser {
$this->urlUtils = $urlUtils;
$this->mExtLinkBracketedRegex = '/\[(((?i)' . $this->urlUtils->validProtocols() . ')' .
self::EXT_LINK_ADDR .
self::EXT_LINK_URL_CLASS . '*)\p{Zs}*([^\]\\x00-\\x08\\x0a-\\x1F\\x{FFFD}]*?)\]/Su';
self::EXT_LINK_URL_CLASS . '*)\p{Zs}*([^\]\\x00-\\x08\\x0a-\\x1F\\x{FFFD}]*)\]/Su';
$this->magicWordFactory = $magicWordFactory;