MDL-56268 webservice: Format backtrace to avoid display private datawq
This commit is contained in:
committed by
Mr. Jenkins (CiBoT)
parent
317bcee9e4
commit
388b48ebcd
@@ -99,6 +99,7 @@ foreach ($requests as $request) {
|
||||
} catch (Exception $e) {
|
||||
$jsonexception = get_exception_info($e);
|
||||
unset($jsonexception->a);
|
||||
$jsonexception->backtrace = format_backtrace($jsonexception->backtrace, true);
|
||||
if (!debugging('', DEBUG_DEVELOPER)) {
|
||||
unset($jsonexception->debuginfo);
|
||||
unset($jsonexception->backtrace);
|
||||
|
||||
Reference in New Issue
Block a user