diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-09-25 11:05:59 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-09-25 11:05:59 +0200 |
commit | 30286c06ab50a04424c415d1007bac66d452208d (patch) | |
tree | 13116a43b9bcb30a211e83df5398e37c79fe5d75 /lib | |
parent | b168d5aa3b16501e9cb4eaa3b665939dde5de52b (diff) | |
download | nextcloud-server-30286c06ab50a04424c415d1007bac66d452208d.tar.gz nextcloud-server-30286c06ab50a04424c415d1007bac66d452208d.zip |
stripos return value check
Diffstat (limited to 'lib')
-rw-r--r-- | lib/server.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/server.php b/lib/server.php index fccb8fad4d0..9de9f5a0566 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(); } |