function verifySignature($in, $sig)
Wolfgang Pichler <[email protected]> Mon, 02 Jan 2006 13:57:07 +0100
| Newsgroups | gmane.comp.php.xml-rpc |
|---|---|
| Message-ID | <[email protected]> |
hi all,
i am at time writing a php xml server for my project...
So i started to play a little bit with usefull incs xmlrpc
implementation...
but there seems to be a problem (or i simple do not understand it) with
the implementation of the function verifySignature($in, $sig) (in
xmlrpcs.inc). This function does check if the argument count of the
request matches the argument count of the signature... - there is the
line:
if(sizeof($cursig)==$in->getNumParams()+1) {
which should check this - but this will always fail because it should
be:
if(sizeof($cursig)==$in->getNumParams()) {
so, why is the +1 there ? - i have triied it without the +1 - without
it, it will work as expected...
regards,
Wolfgang