r82546 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82545‎ | r82546 | r82547 >
Date:13:32, 21 February 2011
Author:thomasv
Status:ok
Tags:
Comment:
revert r82544, and fix similar problem with preceding query
Modified paths:
  • /trunk/extensions/ProofreadPage/ProofreadPage_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/ProofreadPage_body.php
@@ -1448,13 +1448,12 @@
14491449 );
14501450 if( $res && $dbr->numRows( $res ) > 0 ) {
14511451 $row = $dbr->fetchObject( $res );
1452 - $title = $dbr->strencode( $row->title );
14531452 $dbr->freeResult( $res );
14541453 $res2 = $dbr->select(
14551454 array( 'pagelinks', 'page' ),
14561455 array( 'page_title AS title' ),
14571456 array(
1458 - 'pl_title' => $title,
 1457+ 'pl_title' => $row->title,
14591458 'pl_namespace' => $page_ns_index,
14601459 'page_namespace' => $index_ns_index
14611460 ),
@@ -1464,7 +1463,7 @@
14651464 );
14661465 if( $res2 && $dbr->numRows( $res2 ) > 0 ) {
14671466 $row = $dbr->fetchObject( $res2 );
1468 - $indextitle = $dbr->strencode( $row->title );
 1467+ $indextitle = $row->title;
14691468 $dbr->freeResult( $res2 );
14701469 }
14711470 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r82544sanitize input to querythomasv11:52, 21 February 2011

Status & tagging log