From 30286c06ab50a04424c415d1007bac66d452208d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20M=C3=BCller?= <thomas.mueller@tmit.eu>
Date: Wed, 25 Sep 2013 11:05:59 +0200
Subject: [PATCH] stripos return value check

---
 lib/server.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/server.php b/lib/server.php
index fccb8fad4d..9de9f5a056 100644
--- a/lib/server.php
+++ b/lib/server.php
@@ -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();
 			}
-- 
GitLab