From: Rob Church Date: Fri, 8 Jun 2007 16:39:29 +0000 (+0000) Subject: Wrap the recreate-deleted warning dismisser in a CDATA section and run the message... X-Git-Tag: 1.31.0-rc.0~52613 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=328eef6f3235e65cae32147bfe6a0974ddf8ad2b;p=lhc%2Fweb%2Fwiklou.git Wrap the recreate-deleted warning dismisser in a CDATA section and run the message through Xml::escapeJsString() --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 888726ccd5..9514c7544f 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -2072,11 +2072,13 @@ END * @return string */ private function buildWarningDismisser() { - return ''; + . Xml::escapeJsString( wfMsg( 'recreate-deleted-dismiss' ) ) + . '\' );' + . '/*]]>*/'; } }