From: Mischa POSLAWSKY Date: Sun, 10 Feb 2019 22:45:38 +0000 (+0100) Subject: head: enforce absolute links of og:image values X-Git-Tag: v3.9~12 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/6594bbca115194e15a62164b1dac76ad823707ac head: enforce absolute links of og:image values Common replacement of Facebook requirement. --- 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 = [];