Fix a security issue in Minz_Error::error()

Mehtod must redirect automatically by default to avoid code execution after
calling the method.
This commit is contained in:
Marien Fressinaud committed 2014-12-08 12:37:06 +01:00
1 parent eaaf8cdbf1
commit a596385343
1 file changed
+1 -1
+1 -1
View File
@@ -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';