API param validation: Set strict mode for in_array
authorumherirrender <umherirrender_de.wp@web.de>
Tue, 2 Apr 2013 10:05:50 +0000 (12:05 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Tue, 2 Apr 2013 10:05:50 +0000 (12:05 +0200)
commita06611755a83d518eca4321cdd3474c6bc28f472
treeb71457237ece143232a238bf9d0a9933fb6eda88
parent84f623b1ebb66161c59a7e64f1c3dfd5b95b0a2c
API param validation: Set strict mode for in_array

The in_array gives true when the allowed values contains a 0 as value,
for example by namespaces,

action=query&list=allpages&apnamespace=test|tset

was not rejected

Change-Id: I9220a955ffaf2bcb0d1d5b27c948af2f85714110
includes/api/ApiBase.php