dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4331d13
)
Wrap the recreate-deleted warning dismisser in a CDATA section and run the message...
author
Rob Church
<robchurch@users.mediawiki.org>
Fri, 8 Jun 2007 16:39:29 +0000
(16:39 +0000)
committer
Rob Church
<robchurch@users.mediawiki.org>
Fri, 8 Jun 2007 16:39:29 +0000
(16:39 +0000)
includes/EditPage.php
patch
|
blob
|
history
diff --git
a/includes/EditPage.php
b/includes/EditPage.php
index
888726c
..
9514c75
100644
(file)
--- a/
includes/EditPage.php
+++ b/
includes/EditPage.php
@@
-2072,11
+2072,13
@@
END
* @return string
*/
private function buildWarningDismisser() {
* @return string
*/
private function buildWarningDismisser() {
- return '<script type="text/javascript">'
+ global $wgJsMimeType;
+ return '<script type="' . $wgJsMimeType . '">/*<![CDATA[*/'
. 'document.write( \'<div class="mw-recreate-deleted-control">'
. '<a href="javascript:dismissRecreateWarning();">'
. 'document.write( \'<div class="mw-recreate-deleted-control">'
. '<a href="javascript:dismissRecreateWarning();">'
- . wfMsgHtml( 'recreate-deleted-dismiss' ) . '</a></div>\' );'
- . '</script>';
+ . Xml::escapeJsString( wfMsg( 'recreate-deleted-dismiss' ) )
+ . '</a></div>\' );'
+ . '/*]]>*/</script>';
}
}
}
}