diff --git a/apps/dav/lib/systemtag/systemtagplugin.php b/apps/dav/lib/systemtag/systemtagplugin.php index d81ccbf84b0..e104bb8dac4 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();