r100573 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100572‎ | r100573 | r100574 >
Date:02:26, 24 October 2011
Author:aaron
Status:ok (Comments)
Tags:
Comment:
Added quotes to $blockStart/$blockEnd
Modified paths:
  • /trunk/extensions/CheckUser/maintenance/purgeOldData.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CheckUser/maintenance/purgeOldData.php
@@ -46,9 +46,9 @@
4747 break; // all cleared
4848 }
4949 // Record the start and end timestamp for the set
50 - $blockStart = $res->fetchObject()->$ts_column;
 50+ $blockStart = $dbw->addQuotes( $res->fetchObject()->$ts_column );
5151 $res->seek( $res->numRows() - 1 );
52 - $blockEnd = $res->fetchObject()->$ts_column;
 52+ $blockEnd = $dbw->addQuotes( $res->fetchObject()->$ts_column );
5353 $res->free();
5454
5555 // Do the actual delete...

Follow-up revisions

RevisionCommit summaryAuthorDate
r100574MFT r100573 - 'Added quotes to $blockStart/$blockEnd'aaron02:28, 24 October 2011
r100755REL1_16 MFT r97887, r100573, r100689, r100692reedy22:15, 25 October 2011

Comments

#Comment by G.Hagedorn (talk | contribs)   06:32, 25 October 2011

applied to 1.18wmf1, please consider tagging for 1.18

Status & tagging log