From 3bd32269eb6f2adcab096ca44b4a0aa5c1b5f0ae Mon Sep 17 00:00:00 2001 From: Remy Sharp Date: Thu, 25 Sep 2014 21:08:01 +0100 Subject: [PATCH] Revert "Patch for #532 (Windows Curl autocreate user)" --- index.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/index.php b/index.php index 389ba8fb..037aa022 100644 --- a/index.php +++ b/index.php @@ -17,15 +17,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && $cname) { try { - //Fix for #532 - //Windows curl calls require a double quote around your JSON - - $raw = trim(file_get_contents('php://input')); - $raw = str_replace("'",'"',$raw); - $data = json_decode($raw,true); - - if (!isset($data['copyright'])) { - //end of fix + $data = json_decode(file_get_contents('php://input')); + if (!property_exists($data, 'copyright')) { Throw new Exception('>>> JSON requires "copyright" property and value'); }