From: Michael M Slusarz Date: Tue, 14 Sep 2010 18:28:05 +0000 (-0600) Subject: Catch uncaught exceptions. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=70761cc2eb0e410d376e9d63b607d9d8ac3003ca;p=horde.git Catch uncaught exceptions. --- diff --git a/horde/services/ajax.php b/horde/services/ajax.php index 7cadc939e..a8167915a 100644 --- a/horde/services/ajax.php +++ b/horde/services/ajax.php @@ -45,6 +45,10 @@ try { $registry->authenticateFailure($app, $e); } +} catch (Exception $e) { + // Uncaught exception. Sending backtrace info back via AJAX is just a + // waste of time. + exit; } // Open an output buffer to ensure that we catch errors that might break JSON