From 58b614bea1202b8eb62e252a4bd2f3460743bee4 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 2 Dec 2018 21:36:46 +0000 Subject: [PATCH] Ignoring OEmbed array values --- src/Object/OEmbed.php | 2 ++ 1 file changed, 2 insertions(+) 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);