diff options
author | zotlabs <mike@macgirvin.com> | 2016-12-26 13:10:24 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-12-26 13:10:24 -0800 |
commit | b530d1d44981df955842f4f572676db83d18084e (patch) | |
tree | 52464bc1155a964cb9443c83ebcc262782ce36a9 /include/api_zot.php | |
parent | 56219f9f61a32e5733a8c6315637bfae13e38fc0 (diff) | |
download | volse-hubzilla-b530d1d44981df955842f4f572676db83d18084e.tar.gz volse-hubzilla-b530d1d44981df955842f4f572676db83d18084e.tar.bz2 volse-hubzilla-b530d1d44981df955842f4f572676db83d18084e.zip |
perform input validation on xchan_store and re-enable the post method of the xchan api endpoint.
Diffstat (limited to 'include/api_zot.php')
-rw-r--r-- | include/api_zot.php | 4 |
1 files changed, 2 insertions, 2 deletions
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); |