* (bug 27595) sha1 search of list=filearchive does not work
authorSam Reed <reedy@users.mediawiki.org>
Sun, 5 Jun 2011 23:48:39 +0000 (23:48 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 5 Jun 2011 23:48:39 +0000 (23:48 +0000)
Still disabled in misermode, but switched for LIKE rather than =

RELEASE-NOTES-1.19
includes/api/ApiQueryFilearchive.php

index e085309..3714068 100644 (file)
@@ -104,6 +104,7 @@ production.
 * (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 ===
 
index f646a0e..5f4de5d 100644 (file)
@@ -100,7 +100,7 @@ class ApiQueryFilearchive extends ApiQueryBase {
                                $sha1 = $params['sha1base36'];
                        }
                        if ( $sha1 ) {
-                               $this->addWhere( 'fa_storage_key=' . $db->addQuotes( $sha1 ) );
+                               $this->addWhere( 'fa_storage_key ' . $db->buildLike( $sha1, $db->anyString() ) );
                        }
                }