From 1735101b0e7d22912ffa2530598c6fd0153fbf78 Mon Sep 17 00:00:00 2001 From: George Wilson Date: Mon, 26 Feb 2018 03:14:46 +0000 Subject: [PATCH] Proxy to a higher error handler if there is one available (#19645) --- plugins/system/redirect/redirect.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/plugins/system/redirect/redirect.php b/plugins/system/redirect/redirect.php index 7e328327fb401..7a7a99d047cae 100644 --- a/plugins/system/redirect/redirect.php +++ b/plugins/system/redirect/redirect.php @@ -331,6 +331,14 @@ private static function doErrorHandling($error) } } - JErrorPage::render($error); + // Proxy to the previous exception handler if available, otherwise just render the error page + if (self::$previousExceptionHandler) + { + call_user_func_array(self::$previousExceptionHandler, array($error)); + } + else + { + JErrorPage::render($error); + } } }