diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-02-16 10:16:55 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-02-16 10:16:55 +0100 |
commit | 6664b058c428e86511c5330f735df3d7752b6fe8 (patch) | |
tree | f8230098602e644e88ef01376479f7abe927bbdd /public_html/api/index.php | |
parent | 620c4bf621f607b21904f590e4e676f396d40362 (diff) | |
download | webadmin-6664b058c428e86511c5330f735df3d7752b6fe8.tar.gz |
Added proxy functionality - allows direct API calls
Diffstat (limited to 'public_html/api/index.php')
-rw-r--r-- | public_html/api/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public_html/api/index.php b/public_html/api/index.php index 9633e95..0760e9e 100644 --- a/public_html/api/index.php +++ b/public_html/api/index.php @@ -6,7 +6,7 @@ require_once dirname(__FILE__) . "/../../lib/functions.php"; $controller = new kolab_api_controller; try { - $postdata = $_SERVER['REQUEST_METHOD'] == 'POST' ? @json_decode(file_get_contents('php://input'), true) : null; + $postdata = $_SERVER['REQUEST_METHOD'] == 'POST' ? file_get_contents('php://input') : null; $controller->dispatch($postdata); } catch(Exception $e) { error_log($e->getMessage()); |