Skip to content
Snippets Groups Projects
Commit 27c3caf1 authored by Olav Morken's avatar Olav Morken
Browse files

Enable assertion handler for all pages.

Enable the assertion handler for all pages which load www/_include.php.
This may lead to more logging of assertion failures, but should
otherwise be invisible.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2028 44740490-163a-0410-bde0-09ae8108e29a
parent d21ca6e3
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,9 @@ if(get_magic_quotes_gpc()) {
/* Initialize the autoloader. */
require_once(dirname(dirname(__FILE__)) . '/lib/_autoload.php');
/* Enable assertion handler for all pages. */
SimpleSAML_Error_Assertion::installHandler();
/* Show error page on unhandled exceptions. */
function SimpleSAML_exception_handler(Exception $exception) {
$e = new SimpleSAML_Error_Error('UNHANDLEDEXCEPTION', $exception);
......
......@@ -12,8 +12,6 @@
require_once('_include.php');
SimpleSAML_Error_Assertion::installHandler();
/* Index pages - filenames to attempt when accessing directories. */
$indexFiles = array('index.php', 'index.html', 'index.htm', 'index.txt');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment