From 388b48ebcd513ec3b92738e7407bd7bcdeaf144b Mon Sep 17 00:00:00 2001 From: Juan Leyva Date: Mon, 7 Nov 2016 12:46:11 +0000 Subject: [PATCH] MDL-56268 webservice: Format backtrace to avoid display private datawq --- lib/ajax/service.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ajax/service.php b/lib/ajax/service.php index 43ce3f70438..01c77d40c99 100644 --- a/lib/ajax/service.php +++ b/lib/ajax/service.php @@ -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);