From: Mischa POSLAWSKY Date: Tue, 25 Jun 2019 18:16:29 +0000 (+0200) Subject: nieuws/feed: canonical site references X-Git-Tag: v4.0~28 X-Git-Url: http://git.shiar.nl/minimedit.git/commitdiff_plain/92e54cde1cabdb24dcde3937d390a5b176032be5 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 --- 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",