]> git.mxchange.org Git - friendica.git/commitdiff
Ignoring OEmbed array values
authorMichael <heluecht@pirati.ca>
Sun, 2 Dec 2018 21:36:46 +0000 (21:36 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 2 Dec 2018 21:36:46 +0000 (21:36 +0000)
src/Object/OEmbed.php

index bd336f7583fb6c994da174bfe7b9584ed8ddcd49..d787e2ee98e771e163026e1cc90e9a052ba1ddb8 100644 (file)
@@ -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);