http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89544

Revision: 89544
Author:   reedy
Date:     2011-06-05 23:48:39 +0000 (Sun, 05 Jun 2011)
Log Message:
-----------
* (bug 27595) sha1 search of list=filearchive does not work

Still disabled in misermode, but switched for LIKE rather than =

Modified Paths:
--------------
    trunk/phase3/RELEASE-NOTES-1.19
    trunk/phase3/includes/api/ApiQueryFilearchive.php

Modified: trunk/phase3/RELEASE-NOTES-1.19
===================================================================
--- trunk/phase3/RELEASE-NOTES-1.19     2011-06-05 23:44:37 UTC (rev 89543)
+++ trunk/phase3/RELEASE-NOTES-1.19     2011-06-05 23:48:39 UTC (rev 89544)
@@ -104,6 +104,7 @@
 * (bug 29237) add interwiki target url attribute to api/query/interwiki
 * (bug 28392) mark action=undelete&timestamps as type "timestamp"
 * (bug 21346) Make deleted images searchable by hash (disabled in Miser Mode)
+* (bug 27595) sha1 search of list=filearchive does not work
 
 === Languages updated in 1.19 ===
 

Modified: trunk/phase3/includes/api/ApiQueryFilearchive.php
===================================================================
--- trunk/phase3/includes/api/ApiQueryFilearchive.php   2011-06-05 23:44:37 UTC 
(rev 89543)
+++ trunk/phase3/includes/api/ApiQueryFilearchive.php   2011-06-05 23:48:39 UTC 
(rev 89544)
@@ -100,7 +100,7 @@
                                $sha1 = $params['sha1base36'];
                        }
                        if ( $sha1 ) {
-                               $this->addWhere( 'fa_storage_key=' . 
$db->addQuotes( $sha1 ) );
+                               $this->addWhere( 'fa_storage_key ' . 
$db->buildLike( $sha1, $db->anyString() ) );
                        }
                }
 


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to