From 6594bbca115194e15a62164b1dac76ad823707ac Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sun, 10 Feb 2019 23:45:38 +0100 Subject: [PATCH] head: enforce absolute links of og:image values Common replacement of Facebook requirement. --- head.inc.php | 2 +- nieuws/index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/head.inc.php b/head.inc.php index 9e0cbd5..b2b64cc 100644 --- a/head.inc.php +++ b/head.inc.php @@ -8,7 +8,7 @@ - + diff --git a/nieuws/index.php b/nieuws/index.php index cf63a63..4ffaa23 100644 --- a/nieuws/index.php +++ b/nieuws/index.php @@ -15,7 +15,7 @@ if ($page and !is_numeric($page)) { $Place[1] = ' '.$article->date.''; print preg_replace('{(?<=

)(.*?)(?=

)}', ($edit ?: '\1').' [[1]]', ob_get_clean()); if ($article->file and $article->image) { - $Place['image'] = "https://lijtweg.nl/".$article->thumb('600x'); + $Place['image'] = "/".$article->thumb('600x'); } if (!empty($User['admin'])) { $taglist = []; -- 2.30.0