kopia lustrzana
https://github.com/friendica/friendica
zsynchronizowano 2025-09-01 21:11:11 +02:00
Merge pull request #6226 from annando/oembed-array
Ignoring OEmbed array values
Ten commit jest zawarty w:
commit
69a73678eb
1 zmienionych plików z 2 dodań i 0 usunięć
|
@ -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);
|
||||
|
|
Ładowanie…
Dodaj tabelę
Add a link
Odniesienie w nowym zgłoszeniu