f00b4r / nusoap

:smirk: Fixed NuSOAP for PHP 5.6 - 8.2
https://f00b4r.github.io/nusoap/
318 stars 355 forks source link

call() function throws warning #59

Closed L3RAZ closed 4 years ago

L3RAZ commented 4 years ago

image This error is thrown when nusoap function call is called. Since $params is an array and it is passed to varDump function after trying to use the parameter in strip_tags function it breaks. $this->debug("call: operation=$operation, namespace=$namespace, soapAction=$soapAction, rpcParams=$rpcParams, style=$style, use=$use, endpointType=$this->endpointType"); $this->appendDebug('params=' . $this->varDump($params)); $this->appendDebug('headers=' . $this->varDump($headers));

`function varDump($data) { ob_start(); var_dump($this->sanitize($data)); $ret_val = ob_get_contents(); ob_end_clean(); return $ret_val; }

function sanitize($value) {
    return htmlspecialchars(strip_tags($value), ENT_COMPAT, 'utf-8');
}`
f3l1x commented 4 years ago

Hi. Thanks. Do you try latest version or previous versions?

L3RAZ commented 4 years ago

Hello, this started happening with the latest version.

DRoet commented 4 years ago

Also seeing this after the v0.9.9 release

IMSoP commented 4 years ago

This is another bug introduced by PR #58

f3l1x commented 4 years ago

Because PR #58 seems buggy, I revert it and bump v0.9.10 (https://github.com/pwnlabs/nusoap/releases/tag/v0.9.10).

We need to dig deeper. Sorry for inconveniences.