X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FObject%2FOEmbed.php;h=6b53812b98024df96d6871a101ffa8c5ef230574;hb=4fd9db1035f555c2ea6d8400959e6326b51660be;hp=bd336f7583fb6c994da174bfe7b9584ed8ddcd49;hpb=5437e99090b53c0c8d48c57812211f755fff5800;p=friendica.git diff --git a/src/Object/OEmbed.php b/src/Object/OEmbed.php index bd336f7583..6b53812b98 100644 --- a/src/Object/OEmbed.php +++ b/src/Object/OEmbed.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Object; @@ -45,6 +64,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);