block curl for the short term

This commit is contained in:
Remy Sharp 2016-04-19 22:01:14 +01:00
parent 80b64c7296
commit 6e26a7fa81

View file

@ -16,6 +16,7 @@
$user_file = 'users/' . $cname . '.json'; $user_file = 'users/' . $cname . '.json';
if ($_SERVER['REQUEST_METHOD'] === 'POST' && $cname) { if ($_SERVER['REQUEST_METHOD'] === 'POST' && $cname) {
Throw new Exception('>>> curl API has been temporarily disabled. Please send a pull request in the short term. Service will resume as normal again soon ❤');
try { try {
$data = json_decode(file_get_contents('php://input')); $data = json_decode(file_get_contents('php://input'));
if (!property_exists($data, 'copyright')) { if (!property_exists($data, 'copyright')) {