A free, self-hostable news aggregator…
Move force-https.default.txt
Alexandre Alapetitee4ffbd3dade2
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex de3c2cef9..16234e159 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -200,7 +200,7 @@* Cookie with `Secure` tag when used over HTTPS [#1117](https://github.com/FreshRSS/FreshRSS/pull/1117)* Limit API post input to 1MB [#1118](https://github.com/FreshRSS/FreshRSS/pull/1118)* Features- * New list of domains for which to force HTTPS (for images, videos, iframes…) defined in `./data/force-https.default.txt` and `./data/force-https.txt` [#1083](https://github.com/FreshRSS/FreshRSS/issues/1083)+ * New list of domains for which to force HTTPS (for images, videos, iframes…) defined in `./force-https.default.txt` and `./data/force-https.txt` [#1083](https://github.com/FreshRSS/FreshRSS/issues/1083)* In particular useful for privacy and to avoid mixed content errors, e.g. to see YouTube videos when FreshRSS is in HTTPS* Add sharing with “Journal du Hacker” [#1056](https://github.com/FreshRSS/FreshRSS/pull/1056)* UIdiff --git a/data/force-https.default.txt b/force-https.default.txtsimilarity index 100%rename from data/force-https.default.txtrename to force-https.default.txtdiff --git a/lib/lib_rss.php b/lib/lib_rss.phpindex 1bf387712..7e14e638d 100644--- a/lib/lib_rss.php+++ b/lib/lib_rss.php@@ -214,7 +214,7 @@ function customSimplePie() {),));$https_domains = array();- $force = @file(DATA_PATH . '/force-https.default.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);+ $force = @file(FRESHRSS_PATH . '/force-https.default.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);if (is_array($force)) {$https_domains = array_merge($https_domains, $force);}