From b530d1d44981df955842f4f572676db83d18084e Mon Sep 17 00:00:00 2001 From: zotlabs Date: Mon, 26 Dec 2016 13:10:24 -0800 Subject: perform input validation on xchan_store and re-enable the post method of the xchan api endpoint. --- include/api_zot.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/api_zot.php') diff --git a/include/api_zot.php b/include/api_zot.php index d1979c3ae..82de85454 100644 --- a/include/api_zot.php +++ b/include/api_zot.php @@ -334,8 +334,8 @@ logger('api_xchan'); require_once('include/hubloc.php'); - if($_SERVER['REQUEST_METHOD'] === 'POST') { - // $r = xchan_store($_REQUEST); + if($_SERVER['REQUEST_METHOD'] === 'POST') { + $r = xchan_store($_REQUEST); } $r = xchan_fetch($_REQUEST); json_return_and_die($r); -- cgit v1.2.3