diff options
author | Yorhel <git@yorhel.nl> | 2008-10-23 14:48:46 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2008-10-23 14:48:46 +0200 |
commit | a98d19f82972375f9d4e343a30ebb7f16e199770 (patch) | |
tree | 4c16be2d28018fb456df96aebaf6d4849ee7a64e | |
parent | 26a9d6d341583e46066ba5d25a7a48c782464eca (diff) |
error_500_handlers will receive the error message as their first argument
In case you want to help scriptkiddies and display the error message on
the site or something, which is even less secure than just opensourcing
the full code of your website...
-rw-r--r-- | lib/YAWF.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/YAWF.pm b/lib/YAWF.pm index 5615b00..6885936 100644 --- a/lib/YAWF.pm +++ b/lib/YAWF.pm @@ -169,12 +169,12 @@ sub handle_request { # The handler should manually call dbCommit if it makes any changes to the DB eval { $self->resInit; - $self->{_YAWF}{error_500_handler}->($self); + $self->{_YAWF}{error_500_handler}->($self, $err); }; if($@) { chomp( my $m = $@ ); warn "Error handler died as well, something is seriously wrong with your code. ($m)\n"; - YAWF::DefaultHandlers::error_500($self); + YAWF::DefaultHandlers::error_500($self, $err); } # write detailed information about this error to the log |