@@ 583-588 (lines=6) @@ | ||
580 | $sysCall = $this->allow_system_funcs && (strpos($methName, "system.") === 0); |
|
581 | $dmap = $sysCall ? $this->getSystemDispatchMap() : $this->dmap; |
|
582 | ||
583 | if (!isset($dmap[$methName]['function'])) { |
|
584 | // No such method |
|
585 | return new Response(0, |
|
586 | PhpXmlRpc::$xmlrpcerr['unknown_method'], |
|
587 | PhpXmlRpc::$xmlrpcstr['unknown_method']); |
|
588 | } |
|
589 | ||
590 | // Check signature |
|
591 | if (isset($dmap[$methName]['signature'])) { |
|
@@ 598-605 (lines=8) @@ | ||
595 | } else { |
|
596 | list($ok, $errStr) = $this->verifySignature($paramTypes, $sig); |
|
597 | } |
|
598 | if (!$ok) { |
|
599 | // Didn't match. |
|
600 | return new Response( |
|
601 | 0, |
|
602 | PhpXmlRpc::$xmlrpcerr['incorrect_params'], |
|
603 | PhpXmlRpc::$xmlrpcstr['incorrect_params'] . ": ${errStr}" |
|
604 | ); |
|
605 | } |
|
606 | } |
|
607 | ||
608 | $func = $dmap[$methName]['function']; |