]> source.dussan.org Git - nextcloud-server.git/commitdiff
stripos return value check
authorThomas Müller <thomas.mueller@tmit.eu>
Wed, 25 Sep 2013 09:05:59 +0000 (11:05 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Wed, 25 Sep 2013 09:05:59 +0000 (11:05 +0200)
lib/server.php

index fccb8fad4d00b2d5fe6f31ae9cb29a32edc31a3b..9de9f5a05664480dcdbb8d6204071b49f5acc011 100644 (file)
@@ -25,7 +25,7 @@ class Server extends SimpleContainer implements IServerContainer {
                        $params = array();
 
                        // we json decode the body only in case of content type json
-                       if (isset($_SERVER['CONTENT_TYPE']) && stripos($_SERVER['CONTENT_TYPE'],'json') === true ) {
+                       if (isset($_SERVER['CONTENT_TYPE']) && stripos($_SERVER['CONTENT_TYPE'],'json') !== false ) {
                                $params = json_decode(file_get_contents('php://input'), true);
                                $params = is_array($params) ? $params: array();
                        }