]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #6226 from annando/oembed-array
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 3 Dec 2018 00:16:13 +0000 (19:16 -0500)
committerGitHub <noreply@github.com>
Mon, 3 Dec 2018 00:16:13 +0000 (19:16 -0500)
Ignoring OEmbed array values

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);