MDL-56268 webservice: Format backtrace to avoid display private datawq

This commit is contained in:
Juan Leyva
2016-11-10 11:41:24 +08:00
committed by Mr. Jenkins (CiBoT)
parent 317bcee9e4
commit 388b48ebcd
+1
View File
@@ -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);