From: Ævar Arnfjörð Bjarmason Date: Thu, 28 Apr 2005 20:44:26 +0000 (+0000) Subject: * Edit token no longer passed through htmlspecialchars() X-Git-Tag: 1.5.0alpha1~82 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=089b70e430e5083d59a9a2f8ff60f730ca621c9e;p=lhc%2Fweb%2Fwiklou.git * Edit token no longer passed through htmlspecialchars() * Removed getDiffText() (not used) * Syntax --- diff --git a/includes/EditPage.php b/includes/EditPage.php index eccf09b770..bbe980ab59 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -692,7 +692,7 @@ END * we won't save the page, or render user JavaScript and * CSS previews. */ - $token = htmlspecialchars( $wgUser->editToken() ); + $token = $wgUser->editToken(); $wgOut->addHTML( " \n" ); } @@ -719,9 +719,6 @@ END } } - function getDiffText() { - } - /** * @todo document */ @@ -987,35 +984,35 @@ END 'tip' => wfMsg('image_tip'), 'key' => 'D' ), - array( 'image' => 'button_media.png', + array( 'image' =>'button_media.png', 'open' => '[['.$wgLang->getNsText(NS_MEDIA).':', 'close' => ']]', 'sample'=> wfMsg('media_sample'), 'tip' => wfMsg('media_tip'), 'key' => 'M' ), - array( 'image' => 'button_math.png', + array( 'image' =>'button_math.png', 'open' => "\\", 'close' => "\\", 'sample'=> wfMsg('math_sample'), 'tip' => wfMsg('math_tip'), 'key' => 'C' ), - array( 'image' => 'button_nowiki.png', + array( 'image' =>'button_nowiki.png', 'open' => "\\", 'close' => "\\", 'sample'=> wfMsg('nowiki_sample'), 'tip' => wfMsg('nowiki_tip'), 'key' => 'N' ), - array( 'image' => 'button_sig.png', + array( 'image' =>'button_sig.png', 'open' => '--~~~~', 'close' => '', 'sample'=> '', 'tip' => wfMsg('sig_tip'), 'key' => 'Y' ), - array( 'image' => 'button_hr.png', + array( 'image' =>'button_hr.png', 'open' => "\\n----\\n", 'close' => '', 'sample'=> '',