From: Matthew Exon Date: Fri, 27 Dec 2024 20:28:11 +0000 (+0100) Subject: Only replace schema.org if it is a top-level context X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ba26e9c06d842b7388c1edf4eed5e644079455c6;p=friendica.git Only replace schema.org if it is a top-level context --- diff --git a/src/Util/JsonLD.php b/src/Util/JsonLD.php index df320b4bf4..25131a080f 100644 --- a/src/Util/JsonLD.php +++ b/src/Util/JsonLD.php @@ -228,7 +228,7 @@ class JsonLD $value = 'http://schema.org#'; } // Issue 14630: Wordpress Event Bridge uses a URL that cannot be retrieved - if ($value == 'https://schema.org/') { + if (is_int($key) && $value == 'https://schema.org/') { Logger::debug('https schema.org path fixed'); $value = 'https://schema.org/docs/jsonldcontext.json#'; }