Simple latest comment list
[anoweco.git] / www / micropub.php
index b76d997f609285ed867188f220407692d66f2ae9..eff6ea7f26fde64042859ad3a79d36fa06e486fb 100644 (file)
@@ -165,7 +165,8 @@ if ($_SERVER['REQUEST_METHOD'] == 'GET') {
             'Content-Type header missing.'
         );
     }
-    $ctype = $_SERVER['CONTENT_TYPE'];
+    list($ctype) = explode(';', $_SERVER['CONTENT_TYPE'], 2);
+    $ctype = trim($ctype);
     if ($ctype == 'application/x-www-form-urlencoded') {
         if (!isset($_POST['action'])) {
             $_POST['action'] = 'create';