Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -104,6 +104,7 @@ |
105 | 105 | * (bug 29237) add interwiki target url attribute to api/query/interwiki |
106 | 106 | * (bug 28392) mark action=undelete×tamps as type "timestamp" |
107 | 107 | * (bug 21346) Make deleted images searchable by hash (disabled in Miser Mode) |
| 108 | +* (bug 27595) sha1 search of list=filearchive does not work |
108 | 109 | |
109 | 110 | === Languages updated in 1.19 === |
110 | 111 | |
Index: trunk/phase3/includes/api/ApiQueryFilearchive.php |
— | — | @@ -100,7 +100,7 @@ |
101 | 101 | $sha1 = $params['sha1base36']; |
102 | 102 | } |
103 | 103 | if ( $sha1 ) { |
104 | | - $this->addWhere( 'fa_storage_key=' . $db->addQuotes( $sha1 ) ); |
| 104 | + $this->addWhere( 'fa_storage_key ' . $db->buildLike( $sha1, $db->anyString() ) ); |
105 | 105 | } |
106 | 106 | } |
107 | 107 | |