mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 08:17:18 +08:00
add $raw_json_data variable; clean up HTML entity decoding
This commit is contained in:
parent
489c1da8f2
commit
e954136298
1 changed files with 3 additions and 1 deletions
|
@ -84,7 +84,9 @@ class SugarRestJSON extends SugarRest{
|
|||
*/
|
||||
public function serve(){
|
||||
$GLOBALS['log']->info('Begin: SugarRestJSON->serve');
|
||||
$json_data = html_entity_decode(!empty($_REQUEST['rest_data'])? $GLOBALS['RAW_REQUEST']['rest_data']: '');
|
||||
$raw_json_data = $GLOBALS['RAW_REQUEST']['rest_data'];
|
||||
$json_data = !empty($raw_json_data)? html_entity_decode($raw_json_data): '';
|
||||
|
||||
if(empty($_REQUEST['method']) || !method_exists($this->implementation, $_REQUEST['method'])){
|
||||
$er = new SoapError();
|
||||
$er->set_error('invalid_call');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue