From 082fbd18e76e0754ced8d93a2e4c6d3f6edbdd87 Mon Sep 17 00:00:00 2001 From: Remy Sharp Date: Tue, 19 Apr 2016 22:02:57 +0100 Subject: [PATCH] yup, no idea how php works anymore --- index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 06cd283b..7b5a8133 100644 --- a/index.php +++ b/index.php @@ -16,7 +16,9 @@ $user_file = 'users/' . $cname . '.json'; 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 ❤'); + echo ('>>> curl API has been temporarily disabled. Please send a pull request in the short term. Service will resume as normal again soon ❤'); + exit; + try { $data = json_decode(file_get_contents('php://input')); if (!property_exists($data, 'copyright')) {