X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FObject%2FOEmbed.php;h=d787e2ee98e771e163026e1cc90e9a052ba1ddb8;hb=d40b2792b638e68f3040f4a55d30d1b3ef3cbe44;hp=bd336f7583fb6c994da174bfe7b9584ed8ddcd49;hpb=117c0f6c139d18e36f778ed7a6f861837ab94de2;p=friendica.git diff --git a/src/Object/OEmbed.php b/src/Object/OEmbed.php index bd336f7583..d787e2ee98 100644 --- a/src/Object/OEmbed.php +++ b/src/Object/OEmbed.php @@ -45,6 +45,8 @@ class OEmbed if (in_array($key, ['thumbnail_width', 'thumbnail_height', 'width', 'height'])) { // These values should be numbers, so ensure that they really are numbers. $value = (int)$value; + } elseif (is_array($value)) { + // Ignoring arrays. } elseif ($key != 'html') { // Avoid being able to inject some ugly stuff through these fields. $value = htmlentities($value);