From 70761cc2eb0e410d376e9d63b607d9d8ac3003ca Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 14 Sep 2010 12:28:05 -0600 Subject: [PATCH] Catch uncaught exceptions. --- horde/services/ajax.php | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.11.0