IXR: Use a strict comparison to ensure that a non-numerically-indexed array is not incorrectly matched as a numeric array.

See #36586


git-svn-id: https://develop.svn.wordpress.org/trunk@37244 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2016-04-19 06:12:42 +00:00
parent 8b8b0909d4
commit 5d9cdca116

View File

@ -168,7 +168,7 @@ class IXR_Value {
{
$expected = 0;
foreach ($array as $key => $value) {
if ((string)$key != (string)$expected) {
if ((string)$key !== (string)$expected) {
return true;
}
$expected++;