r53711 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53710‎ | r53711 | r53712 >
Date:11:12, 24 July 2009
Author:rainman
Status:ok
Tags:
Comment:
Properly escape the search term here.
Modified paths:
  • /trunk/phase3/includes/specials/SpecialSearch.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialSearch.php
@@ -884,7 +884,7 @@
885885 if ( $resultsShown > 0 ) {
886886 if ( $totalNum > 0 ){
887887 $top = wfMsgExt('showingresultsheader', array( 'parseinline' ),
888 - $this->offset+1, $this->offset+$resultsShown, $totalNum, $term, $resultsShown );
 888+ $this->offset+1, $this->offset+$resultsShown, $totalNum, wfEscapeWikiText($term), $resultsShown );
889889 } elseif ( $resultsShown >= $this->limit ) {
890890 $top = wfShowingResults( $this->offset, $this->limit );
891891 } else {

Status & tagging log