diff options
| author | 2014-12-08 12:37:06 +0100 | |
|---|---|---|
| committer | 2014-12-08 12:37:06 +0100 | |
| commit | a596385343a0307bb81d1662f78106d8f7e2dbfb (patch) | |
| tree | ab3131847debec84f8d082a87eb9f4ddac21e6dd | |
| parent | eaaf8cdbf1e87ad22d25257eb99a4b80b579e661 (diff) | |
Fix a security issue in Minz_Error::error()
Mehtod must redirect automatically by default to avoid code execution after
calling the method.
| -rw-r--r-- | lib/Minz/Error.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Minz/Error.php b/lib/Minz/Error.php index c8222a430..e5f3dff07 100644 --- a/lib/Minz/Error.php +++ b/lib/Minz/Error.php @@ -19,7 +19,7 @@ class Minz_Error { * > $logs['notice'] * @param $redirect indique s'il faut forcer la redirection (les logs ne seront pas transmis) */ - public static function error ($code = 404, $logs = array (), $redirect = false) { + public static function error ($code = 404, $logs = array (), $redirect = true) { $logs = self::processLogs ($logs); $error_filename = APP_PATH . '/Controllers/errorController.php'; |
