dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
API param validation: Set strict mode for in_array
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiBase.php
diff --git
a/includes/api/ApiBase.php
b/includes/api/ApiBase.php
index
741e908
..
84a6ed9
100644
(file)
--- a/
includes/api/ApiBase.php
+++ b/
includes/api/ApiBase.php
@@
-1081,7
+1081,7
@@
abstract class ApiBase extends ContextSource {
if ( !$allowMultiple && count( $valuesList ) != 1 ) {
// Bug 33482 - Allow entries with | in them for non-multiple values
- if ( in_array( $value, $allowedValues ) ) {
+ if ( in_array( $value, $allowedValues
, true
) ) {
return $value;
}