Skip to content

Commit

Permalink
Disable error output on http exception on production servers
Browse files Browse the repository at this point in the history
  • Loading branch information
coffeeich committed Mar 20, 2013
1 parent 3895303 commit fa3529f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions classes/HTTP/Exception.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception extends Kohana_HTTP_Exception {

public function get_response() {
return Kohana::$errors === TRUE ? parent::get_response() : '';
}

}

0 comments on commit fa3529f

Please sign in to comment.