X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FObject%2FOEmbed.php;h=3f53f48cd18d5287af17d41eea02eb17638f51ec;hb=1744f6b2c338d7981ceebba3b98ae61fbffb25a7;hp=bd336f7583fb6c994da174bfe7b9584ed8ddcd49;hpb=2ef23300a33440aa4bfee4353572ac6960481ee8;p=friendica.git diff --git a/src/Object/OEmbed.php b/src/Object/OEmbed.php index bd336f7583..3f53f48cd1 100644 --- a/src/Object/OEmbed.php +++ b/src/Object/OEmbed.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Object; @@ -15,6 +34,7 @@ class OEmbed public $type = ''; public $title = ''; + public $description = ''; public $author_name = ''; public $author_url = ''; public $provider_name = ''; @@ -45,6 +65,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);