mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
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:
parent
246f6da2b8
commit
c7e8e6b72b
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user