TheDJ has uploaded a new change for review. https://gerrit.wikimedia.org/r/170589
Change subject: Parser: Add <bdi> to the whitelist for TOC links ...................................................................... Parser: Add <bdi> to the whitelist for TOC links Bug: 72884 Change-Id: Id5aa9a4eb32fb185881141e55de700ae36f806c5 --- M includes/parser/Parser.php 1 file changed, 3 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/89/170589/1 diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index fe0c81f..c3711c3 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -4544,14 +4544,15 @@ # * <sup> and <sub> (bug 8393) # * <i> (bug 26375) # * <b> (r105284) + # * <bdi> (bug 72884) # * <span dir="rtl"> and <span dir="ltr"> (bug 35167) # # We strip any parameter from accepted tags (second regex), except dir="rtl|ltr" from <span>, # to allow setting directionality in toc items. $tocline = preg_replace( array( - '#<(?!/?(span|sup|sub|i|b)(?: [^>]*)?>).*?' . '>#', - '#<(/?(?:span(?: dir="(?:rtl|ltr)")?|sup|sub|i|b))(?: .*?)?' . '>#' + '#<(?!/?(span|sup|sub|bdi|i|b)(?: [^>]*)?>).*?' . '>#', + '#<(/?(?:span(?: dir="(?:rtl|ltr)")?|sup|sub|bdi|i|b))(?: .*?)?' . '>#' ), array( '', '<$1>' ), $safeHeadline -- To view, visit https://gerrit.wikimedia.org/r/170589 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id5aa9a4eb32fb185881141e55de700ae36f806c5 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: TheDJ <hartman.w...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits