1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 17:35:56 +00:00

add basic safe mode which doesn't load any user plugins

This commit is contained in:
Andrew Dolgov
2020-09-18 15:48:22 +03:00
parent 3588d5186e
commit 03a337a660
4 changed files with 15 additions and 1 deletions

View File

@@ -858,6 +858,10 @@ class Pref_Prefs extends Handler_Protected {
print_warning("Your PHP configuration has open_basedir restrictions enabled. Some plugins relying on CURL for functionality may not work correctly.");
}
if ($_SESSION["safe_mode"]) {
print_error("You have logged in using safe mode, no user plugins will be actually enabled until you login again.");
}
$feed_handler_whitelist = [ "Af_Comics" ];
$feed_handlers = array_merge(