summaryrefslogtreecommitdiff
path: root/public_html/api
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-02-16 09:16:55 (GMT)
committerAleksander Machniak <alec@alec.pl>2012-02-16 09:16:55 (GMT)
commit6664b058c428e86511c5330f735df3d7752b6fe8 (patch)
treef8230098602e644e88ef01376479f7abe927bbdd /public_html/api
parent620c4bf621f607b21904f590e4e676f396d40362 (diff)
downloadkolab-wap-6664b058c428e86511c5330f735df3d7752b6fe8.tar.gz
Added proxy functionality - allows direct API calls
Diffstat (limited to 'public_html/api')
-rw-r--r--public_html/api/index.php2
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());