Commit ac93eb8c authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-3903

parent fa9a91dd
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -89,6 +89,9 @@ class MobiquoServerJSON extends MobiquoServer
        ini_set('ocproducts.xss_detect', '0');

        global $SERVER_DEFINE;
        if (!isset($SERVER_DEFINE[$this->get_method_name()])) {
            warn_exit('Unknown endpoint');
        }
        $function = $SERVER_DEFINE[$this->get_method_name()]['function'];
        try {
            $response = call_user_func($function, $params);
+3 −0
Original line number Diff line number Diff line
@@ -74,6 +74,9 @@ class MobiquoServerPOST extends MobiquoServer
        ini_set('ocproducts.xss_detect', '0');

        global $SERVER_DEFINE;
        if (!isset($SERVER_DEFINE[$this->get_method_name()])) {
            warn_exit('Unknown endpoint');
        }
        $function = $SERVER_DEFINE[$this->get_method_name()]['function'];
        try {
            $response = call_user_func($function, $params);