From 9e640da42e27051c5d2ff3b66f471ab8c07f4657 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 21 Dec 2015 14:22:18 +0100 Subject: [PATCH] Temporarily "fix" exception handling for AJAX requests --- wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php b/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php index a0041c72c9..0b0ae9d8e9 100644 --- a/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php +++ b/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php @@ -158,7 +158,8 @@ class AJAXInvokeAction extends AbstractSecureAction { throw $e; } // TODO: This needs to be updated to the new exception handling code. - throw new \Exception('TODO: AJAXInvokeAction::throwException()'); + throw $e; + //throw new \Exception('TODO: AJAXInvokeAction::throwException()'); if ($e instanceof InvalidSecurityTokenException) { throw new AJAXException(WCF::getLanguage()->get('wcf.ajax.error.sessionExpired'), AJAXException::SESSION_EXPIRED, $e->getTraceAsString()); } -- 2.20.1