From 9b839b2a4f75e48809108d0ad0c8c61d00c44d9a Mon Sep 17 00:00:00 2001 From: nodiscc Date: Thu, 22 May 2014 06:14:38 +0200 Subject: [PATCH] HTTPS support for RSS feed URL generation, fixes https://github.com/sebsauvage/MinigalNano/issues/33 Move $gallery_link definition from config.php to rss.php (prevents non-editable content in config.php --- config.php | 1 - rss.php | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/config.php b/config.php index d0df8eb..8091d94 100755 --- a/config.php +++ b/config.php @@ -38,7 +38,6 @@ $label_noimages = "No images"; //Empty folder text $label_loading = "Loading..."; //Thumbnail loading text //RSS SETTINGS -$gallery_link = substr("http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 0, strlen("http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'])-7); // the -7 is to remove "rss.php" $description = "MiniGal Nano"; $nb_items_rss = 25; //number ef elements to display in the feed. If you add a lot of pictures at the time, consider increasing this number $rss_refresh_interval = 60;//time, in seconds, between two RSS refresh. for example, 3600 = 1update max per hour, 86400 = 1/day. diff --git a/rss.php b/rss.php index b4462fa..006b0ff 100644 --- a/rss.php +++ b/rss.php @@ -1,4 +1,13 @@