From e8a53ecf368c3c6611c349ad755b9dfca8307062 Mon Sep 17 00:00:00 2001 From: "C. Scott Ananian" Date: Thu, 27 Sep 2018 11:44:15 -0400 Subject: [PATCH] Use
wrappers instead of

in ProtectionForm

-wrappers are fragile in case the wrapped content contains `

`, `

` (or wikitext double newlines). Use

wrappers consistently in MediaWiki. Bug: T205624 Change-Id: Ieee77f4220c7895ac5dccb2b638baef0dc22c84f --- includes/ProtectionForm.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index 1f3de501f8..eacd370afd 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -204,9 +204,9 @@ class ProtectionForm { $out->addBacklinkSubtitle( $this->mTitle ); if ( is_array( $err ) ) { - $out->wrapWikiMsg( "

\n$1\n

\n", $err ); + $out->wrapWikiMsg( "
\n$1\n
\n", $err ); } elseif ( is_string( $err ) ) { - $out->addHTML( "

{$err}

\n" ); + $out->addHTML( "
{$err}
\n" ); } if ( $this->mTitle->getRestrictionTypes() === [] ) { -- 2.20.1