X-Git-Url: https://git.cweiske.de/anoweco.git/blobdiff_plain/77547c22ee2dfc6634b5111b05fc3cc35a9caf6a..506949fa5639b8810a2437a9bffbe40165e4d8ae:/www/micropub.php diff --git a/www/micropub.php b/www/micropub.php index b76d997..eff6ea7 100644 --- a/www/micropub.php +++ b/www/micropub.php @@ -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';