perform input validation on xchan_store and re-enable the post method of the xchan api endpoint.

This commit is contained in:
zotlabs
2016-12-26 13:10:24 -08:00
parent 56219f9f61
commit b530d1d449
2 changed files with 10 additions and 2 deletions

View File

@@ -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);