Do not POST MediaWiki search form
authorJesper Kristensen <mail@jesperkristensen.dk>
Sat, 05 Feb 2011 11:27:27 +0100
changeset 290 b633a07de427
parent 289 d618e51f2c8e
child 291 807544771525
push id138
push usermail@jesperkristensen.dk
push dateSat, 05 Feb 2011 10:27:53 +0000
Do not POST MediaWiki search form
mediawiki/theme/MCS.php
--- a/mediawiki/theme/MCS.php
+++ b/mediawiki/theme/MCS.php
@@ -304,17 +304,17 @@ if ($toc and strpos($this->tocPos,'conte
 	function getMsg( $str ) {
 		return htmlspecialchars( $this->translator->translate( $str ) );
 	}
 	/*************************************************************************************************/
 	function searchBox() {
 		global $wgUseTwoButtonsSearchForm;
 ?>
 	<li id="hb-search-box">
-		<form action="<?php $this->text('wgScript') ?>" method="post" id="search">
+		<form action="<?php $this->text('wgScript') ?>" method="get" id="search">
 			<div>
 				<input type='hidden' name="title" value="<?php $this->text('searchtitle') ?>"/>
 				<?php
 		echo Html::input( 'search',
 			isset( $this->data['search'] ) && !empty($this->data['search']) ? $this->data['search'] : $this->getMsg('search').'…', 'search',
 			array(
 				'id' => 'hb-searchinput',
 				'title' => $this->skin->titleAttrib( 'search' ),