Revert "Patch for #532 (Windows Curl autocreate user)"

This commit is contained in:
Remy Sharp 2014-09-25 21:08:01 +01:00
parent 54b094ac33
commit 3bd32269eb

View file

@ -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');
}