MDL-12886 fixed regressions, WS may return any data type, we have to use some var_export() or something similar to make it printable

This commit is contained in:
skodak 2009-10-23 00:03:10 +00:00
parent 246f6da2b8
commit c7e8e6b72b

View File

@ -126,7 +126,7 @@ if ($mform->is_cancelled()) {
try {
$response = $testclient->simpletest($serverurl, $function, $params);
echo str_replace("\n", '<br />', s($response));
echo str_replace("\n", '<br />', s(var_export($response, true)));
} catch (Exception $ex) {
//TODO: handle exceptions and faults without exposing of the sensitive information such as debug traces!
echo str_replace("\n", '<br />', s($ex));