Catch uncaught exceptions.
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 14 Sep 2010 18:28:05 +0000 (12:28 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 15 Sep 2010 14:43:33 +0000 (08:43 -0600)
horde/services/ajax.php

index 7cadc93..a816791 100644 (file)
@@ -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