A free, self-hostable news aggregator…
Use getenv instead of $_SERVER for environment variables
Alexandre Alapetite999d1b8c035f
diff --git a/constants.php b/constants.phpindex 2072e5ea1..dacbb11aa 100644--- a/constants.php+++ b/constants.php@@ -33,7 +33,7 @@ safe_define('FRESHRSS_USERAGENT', 'FreshRSS/' . FRESHRSS_VERSION . ' (' . PHP_OSsafe_define('PHP_COMPRESSION', false);// For cases when syslog is not available-safe_define('COPY_SYSLOG_TO_STDERR', isset($_SERVER['COPY_SYSLOG_TO_STDERR']) ? filter_var($_SERVER['COPY_SYSLOG_TO_STDERR'], FILTER_VALIDATE_BOOLEAN) : false);+safe_define('COPY_SYSLOG_TO_STDERR', filter_var(getenv('COPY_SYSLOG_TO_STDERR'), FILTER_VALIDATE_BOOLEAN));// Maximum log file size in Bytes, before it will be divided by twosafe_define('MAX_LOG_SIZE', 1048576);