Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9df2f66
)
MDL-67189 external: Catch Throwable in call_external_function
author
Dani Palou
<dani@moodle.com>
Wed, 12 Feb 2020 09:14:52 +0000
(10:14 +0100)
committer
Dani Palou
<dani@moodle.com>
Tue, 10 Mar 2020 07:26:43 +0000
(08:26 +0100)
lib/externallib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/externallib.php
b/lib/externallib.php
index
e6d5e99
..
c5cd8e7
100644
(file)
--- a/
lib/externallib.php
+++ b/
lib/externallib.php
@@
-252,7
+252,7
@@
class external_api {
$response['error'] = false;
$response['data'] = $result;
- } catch (
Exception
$e) {
+ } catch (
Throwable
$e) {
$exception = get_exception_info($e);
unset($exception->a);
$exception->backtrace = format_backtrace($exception->backtrace, true);