X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FObject%2FOEmbed.php;h=2511a0f7586c1cb0a100a8be3cc472dad06f8c5e;hb=af2a38c5b3724d140700316f3a0251e82692de38;hp=bd336f7583fb6c994da174bfe7b9584ed8ddcd49;hpb=aa1882fd99f130f207e6ee6bd4e520cfe1e044f1;p=friendica.git diff --git a/src/Object/OEmbed.php b/src/Object/OEmbed.php index bd336f7583..2511a0f758 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);