From cc0f0a940eefff08116744cedd0621a4e1d7bb24 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Wed, 20 Jan 2016 11:51:06 +0100 Subject: [PATCH] Fix content type parsing in system tags plugin --- apps/dav/lib/systemtag/systemtagplugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/systemtag/systemtagplugin.php b/apps/dav/lib/systemtag/systemtagplugin.php index d81ccbf84b..e104bb8dac 100644 --- a/apps/dav/lib/systemtag/systemtagplugin.php +++ b/apps/dav/lib/systemtag/systemtagplugin.php @@ -147,7 +147,7 @@ class SystemTagPlugin extends \Sabre\DAV\ServerPlugin { * @throws UnsupportedMediaType if the content type is not supported */ private function createTag($data, $contentType = 'application/json') { - if ($contentType === 'application/json') { + if (explode(';', $contentType)[0] === 'application/json') { $data = json_decode($data, true); } else { throw new UnsupportedMediaType();