@@ 573-578 (lines=6) @@ | ||
570 | $sysCall = $this->allow_system_funcs && (strpos($methName, "system.") === 0); |
|
571 | $dmap = $sysCall ? $this->getSystemDispatchMap() : $this->dmap; |
|
572 | ||
573 | if (!isset($dmap[$methName]['function'])) { |
|
574 | // No such method |
|
575 | return new Response(0, |
|
576 | PhpXmlRpc::$xmlrpcerr['unknown_method'], |
|
577 | PhpXmlRpc::$xmlrpcstr['unknown_method']); |
|
578 | } |
|
579 | ||
580 | // Check signature |
|
581 | if (isset($dmap[$methName]['signature'])) { |
|
@@ 588-595 (lines=8) @@ | ||
585 | } else { |
|
586 | list($ok, $errStr) = $this->verifySignature($paramTypes, $sig); |
|
587 | } |
|
588 | if (!$ok) { |
|
589 | // Didn't match. |
|
590 | return new Response( |
|
591 | 0, |
|
592 | PhpXmlRpc::$xmlrpcerr['incorrect_params'], |
|
593 | PhpXmlRpc::$xmlrpcstr['incorrect_params'] . ": ${errStr}" |
|
594 | ); |
|
595 | } |
|
596 | } |
|
597 | ||
598 | $func = $dmap[$methName]['function']; |