From: Antoine Musso Date: Tue, 11 Jul 2006 17:30:48 +0000 (+0000) Subject: * Fix double escaping (thanks brion) X-Git-Tag: 1.31.0-rc.0~56296 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=e88fabb8801e0b804c0133f2765d9899636bb15e;p=lhc%2Fweb%2Fwiklou.git * Fix double escaping (thanks brion) * wfHidden ftw!!!1! --- diff --git a/includes/SpecialWatchlist.php b/includes/SpecialWatchlist.php index 867d5938ed..d96bb0042c 100644 --- a/includes/SpecialWatchlist.php +++ b/includes/SpecialWatchlist.php @@ -235,7 +235,7 @@ function wfSpecialWatchlist( $par ) { $wgOut->addHTML( '' ); } $wgOut->addHTML( - wfSubmitButton( htmlspecialchars( wfMsg('removechecked') ), array('name' => 'remove') ) . + wfSubmitButton( wfMsg('removechecked'), array('name' => 'remove') ) . "\n\n" ); @@ -346,7 +346,7 @@ function wfSpecialWatchlist( $par ) { $wgOut->addHTML( wfOpenElement( 'form', array( 'method' => 'post', - 'action' => $thisTitle->escapeLocalUrl(), + 'action' => $thisTitle->getLocalURL(), ) ) . wfLabel( wfMsgExt( 'namespace', array( 'parseinline') ), @@ -498,7 +498,7 @@ function wlHandleClear( &$out, &$request, $par ) { $out->addWikiText( wfMsg( 'watchlistcount', $count ) ); $out->addWikiText( wfMsg( 'watchlistcleartext' ) ); $out->addHTML( - wfElement( 'input', array( 'type' => 'hidden', 'name' => 'token', 'value' => $wgUser->editToken( 'clearwatchlist' ) ), '' ) . + wfHidden( 'token', $wgUser->editToken( 'clearwatchlist' ) ) . wfElement( 'input', array( 'type' => 'submit', 'name' => 'submit', 'value' => wfMsgHtml( 'watchlistclearbutton' ) ), '' ) . wfCloseElement( 'form' ) );