dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9970000
)
Per NikeRabbit on r88174, allow capitals in the regex
author
Sam Reed
<reedy@users.mediawiki.org>
Thu, 19 May 2011 21:43:58 +0000
(21:43 +0000)
committer
Sam Reed
<reedy@users.mediawiki.org>
Thu, 19 May 2011 21:43:58 +0000
(21:43 +0000)
includes/api/ApiQueryAllimages.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiQueryAllimages.php
b/includes/api/ApiQueryAllimages.php
index
bdc561b
..
020b4b9
100644
(file)
--- a/
includes/api/ApiQueryAllimages.php
+++ b/
includes/api/ApiQueryAllimages.php
@@
-186,7
+186,7
@@
class ApiQueryAllimages extends ApiQueryGeneratorBase {
* @return bool
*/
public static function validateSha1Hash( $hash ) {
- return preg_match( '/[a-f0-9]{40}/', $hash );
+ return preg_match( '/[a-f
A-F
0-9]{40}/', $hash );
}
/**
@@
-194,7
+194,7
@@
class ApiQueryAllimages extends ApiQueryGeneratorBase {
* @return bool
*/
public static function validateSha1Base36Hash( $hash ) {
- return preg_match( '/[a-z0-9]{31}/', $hash );
+ return preg_match( '/[a-z
A-Z
0-9]{31}/', $hash );
}
public function getAllowedParams() {