summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-01-20 11:51:06 +0100
committerVincent Petry <pvince81@owncloud.com>2016-01-20 11:51:06 +0100
commitcc0f0a940eefff08116744cedd0621a4e1d7bb24 (patch)
treeda592529fcdf3022ee9f48a8c4f22f0398823303 /apps/dav
parentffba6d0a7e1988bed1c0f0dfa2334092a65c568d (diff)
downloadnextcloud-server-cc0f0a940eefff08116744cedd0621a4e1d7bb24.tar.gz
nextcloud-server-cc0f0a940eefff08116744cedd0621a4e1d7bb24.zip
Fix content type parsing in system tags plugin
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/systemtag/systemtagplugin.php2
1 files changed, 1 insertions, 1 deletions
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();