Safer htmlspecialchars_utf8 (#4411)

* Safer htmlspecialchars_utf8
#fix https://github.com/FreshRSS/FreshRSS/issues/4410

* Undefined variable
This commit is contained in:
Alexandre Alapetite
2022-06-11 22:14:46 +02:00
committed by GitHub
parent a398a135f5
commit ec11da4e84
3 changed files with 10 additions and 3 deletions

View File

@@ -43,6 +43,7 @@ class FreshRSS_Context {
public static $state = 0;
public static $order = 'DESC';
public static $number = 0;
/** @var FreshRSS_BooleanSearch */
public static $search;
public static $first_id = '';
public static $next_id = '';
@@ -114,6 +115,8 @@ class FreshRSS_Context {
return false;
}
FreshRSS_Context::$search = new FreshRSS_BooleanSearch('');
//Legacy
$oldEntries = (int)FreshRSS_Context::$user_conf->param('old_entries', 0);
$keepMin = (int)FreshRSS_Context::$user_conf->param('keep_history_default', -5);