From 92e54cde1cabdb24dcde3937d390a5b176032be5 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 25 Jun 2019 20:16:29 +0200 Subject: [PATCH] nieuws/feed: canonical site references Retain https protocol and append root slash in site links, as recommended by: https://validator.w3.org/feed/check.cgi?url=https://lijtweg.nl/nieuws/feed --- nieuws/feed/index.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nieuws/feed/index.php b/nieuws/feed/index.php index 0a88cd4..11138ce 100644 --- a/nieuws/feed/index.php +++ b/nieuws/feed/index.php @@ -2,14 +2,14 @@ ob_clean(); header('Content-Type: application/atom+xml; charset=utf-8'); print ''; -$siteref = 'http://'.$_SERVER['HTTP_HOST']; +$siteref = (empty($_SERVER['HTTPS']) ? 'http' : 'https') . '://' . $_SERVER['HTTP_HOST']; ?> Lijtweg.nl Nieuwsberichten - - + / + Lijtweg $page) { <?= $article->title ?> dateiso ?> dateiso ?> - body) ?> + body) ?> + thumb) { printf("\t\t".''."\n", -- 2.30.0