Merge pull request #2366 from julceslauhub/master

BUG 13436 ProcessMaker 2.x Authenticated PHP Code Execution IMPROVEMENT
This commit is contained in:
julceslauhub
2014-05-07 17:52:01 -03:00

View File

@@ -6,7 +6,7 @@ if (! isset( $_REQUEST['action'] )) {
print G::json_encode( $res );
die();
}
if (! function_exists( $_REQUEST['action'] )) {
if (! function_exists( $_REQUEST['action'] ) || !G::isUserFunction($_REQUEST['action'])) {
$res['success'] = false;
$res['error'] = $res['message'] = G::LoadTranslation('ID_REQUEST_ACTION_NOT_EXIST');