Index: trunk/phase3/includes/api/ApiQueryFilearchive.php |
— | — | @@ -100,7 +100,7 @@ |
101 | 101 | } |
102 | 102 | $sha1 = wfBaseConvert( $params['sha1'], 16, 36, 31 ); |
103 | 103 | } elseif ( $sha1base36Set ) { |
104 | | - if ( !ApiQueryAllimages::validateSha1Base36Hash( $sha1 ) ) { |
| 104 | + if ( !ApiQueryAllimages::validateSha1Base36Hash( $params['sha1base36'] ) ) { |
105 | 105 | $this->dieUsage( 'The SHA1Base36 hash provided is not valid', 'invalidsha1base36hash' ); |
106 | 106 | } |
107 | 107 | $sha1 = $params['sha1base36']; |
— | — | @@ -114,7 +114,7 @@ |
115 | 115 | // Filter out revisions that the user is not allowed to see. There |
116 | 116 | // is no way to indicate that we have skipped stuff because the |
117 | 117 | // continuation parameter is fa_name |
118 | | - |
| 118 | + |
119 | 119 | // Note that this field is unindexed. This should however not be |
120 | 120 | // a big problem as files with fa_deleted are rare |
121 | 121 | $this->addWhereFld( 'fa_deleted', 0 ); |