aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2019-01-15 20:58:53 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2019-01-15 20:58:53 +0100
commit6bc49e137e2f996f768770c3702d7d6552f556b3 (patch)
treedaf73c82840eb4985a61eb7ddb6ee3d7609252af
parenta26eff8a2084a779959f5bef96a4bc72c7ec6ab7 (diff)
parent9214eeecff363883d3d396490e8f1c7adf523c05 (diff)
Manual merge /dev
-rw-r--r--CHANGELOG.md2
-rw-r--r--Docker/Dockerfile1
-rw-r--r--constants.php3
-rw-r--r--lib/lib_rss.php2
-rw-r--r--p/scripts/main.js2
5 files changed, 7 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ff306cb7c..ce9ce145f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,7 +11,7 @@
* Performance: Disable unused Apache modules
* Add option to mount custom `.htaccess` for HTTP authentication
* Docker logs gets PHP syslog messages (e.g. from cron job and when fetching external content)
- * Send a copy of PHP syslog messages to STDERR [#2208](https://github.com/FreshRSS/FreshRSS/pull/2208)
+ * New environment variable `COPY_SYSLOG_TO_STDERR` or in `constants.local.php` to copy PHP syslog messages to STDERR [#2213](https://github.com/FreshRSS/FreshRSS/pull/2213)
* Run Docker cron job with Apache user instead of root [#2208](https://github.com/FreshRSS/FreshRSS/pull/2208)
* Accept HTTP header `X-WebAuth-User` for delegated HTTP Authentication [#2204](https://github.com/FreshRSS/FreshRSS/pull/2204)
* API
diff --git a/Docker/Dockerfile b/Docker/Dockerfile
index 52ac5f2fc..7aaee52a0 100644
--- a/Docker/Dockerfile
+++ b/Docker/Dockerfile
@@ -23,6 +23,7 @@ RUN rm -f /etc/apache2/conf.d/languages.conf /etc/apache2/conf.d/info.conf \
echo "17,37 * * * * su apache -s /bin/sh -c 'php /var/www/FreshRSS/app/actualize_script.php' 2>> /proc/1/fd/2 > /tmp/FreshRSS.log" >> \
/var/spool/cron/crontabs/root
+ENV COPY_SYSLOG_TO_STDERR On
ENV CRON_MIN ''
ENTRYPOINT ["./Docker/entrypoint.sh"]
diff --git a/constants.php b/constants.php
index 3a8c213d4..89eb5cda1 100644
--- a/constants.php
+++ b/constants.php
@@ -32,6 +32,9 @@ safe_define('FRESHRSS_USERAGENT', 'FreshRSS/' . FRESHRSS_VERSION . ' (' . PHP_OS
// PHP text output compression http://php.net/ob_gzhandler (better to do it at Web server level)
safe_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);
+
// Maximum log file size in Bytes, before it will be divided by two
safe_define('MAX_LOG_SIZE', 1048576);
diff --git a/lib/lib_rss.php b/lib/lib_rss.php
index 738ccf641..89e9ddfea 100644
--- a/lib/lib_rss.php
+++ b/lib/lib_rss.php
@@ -203,7 +203,7 @@ function html_only_entity_decode($text) {
}
function prepareSyslog() {
- return openlog("FreshRSS", LOG_PERROR | LOG_PID, LOG_USER);
+ return COPY_SYSLOG_TO_STDERR ? openlog("FreshRSS", LOG_PERROR | LOG_PID, LOG_USER) : false;
}
function customSimplePie($attributes = array()) {
diff --git a/p/scripts/main.js b/p/scripts/main.js
index 7b49ebeb2..4939bf7dd 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -581,7 +581,7 @@ function init_column_categories() {
}
});
$(this).parent().next('.tree-folder-items').slideToggle(300, function () {
- //Workaround for Gecko bug in Firefox 64-65(+?):
+ //Workaround for Gecko bug 1514498 in Firefox 64
const sidebar = document.getElementById('sidebar');
if (sidebar && sidebar.scrollHeight > sidebar.clientHeight && //if needs scrollbar
sidebar.scrollWidth >= sidebar.offsetWidth) { //but no scrollbar