Index: trunk/phase3/includes/api/ApiQueryAllimages.php |
— | — | @@ -186,7 +186,7 @@ |
187 | 187 | * @return bool |
188 | 188 | */ |
189 | 189 | public static function validateSha1Hash( $hash ) { |
190 | | - return preg_match( '/[a-f0-9]{40}/', $hash ); |
| 190 | + return preg_match( '/[a-fA-F0-9]{40}/', $hash ); |
191 | 191 | } |
192 | 192 | |
193 | 193 | /** |
— | — | @@ -194,7 +194,7 @@ |
195 | 195 | * @return bool |
196 | 196 | */ |
197 | 197 | public static function validateSha1Base36Hash( $hash ) { |
198 | | - return preg_match( '/[a-z0-9]{31}/', $hash ); |
| 198 | + return preg_match( '/[a-zA-Z0-9]{31}/', $hash ); |
199 | 199 | } |
200 | 200 | |
201 | 201 | public function getAllowedParams() { |