perform input validation on xchan_store and re-enable the post method of the xchan api endpoint.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user