mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-26 04:58:40 -04:00
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:
1 parent
eaaf8cdbf1
commit
a596385343
1 file changed
+1
-1
+1
-1
@@ -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';
|
||||
|
||||
|
||||
Reference in new issue
Block a user