diff options
author | Manuel Hiebel <leuhmanu@mageia.org> | 2023-09-05 22:16:29 +0200 |
---|---|---|
committer | Manuel Hiebel <leuhmanu@mageia.org> | 2023-09-05 22:16:29 +0200 |
commit | 02b6ced8955cd5b773e958cd12f586b69933b84f (patch) | |
tree | abc29dc6dae1babf44e18d28ba397dbc94285730 /lib/simplepie/library/SimplePie/Enclosure.php | |
parent | 4dc2c6193f1668d2bd6c9e7b4e6c9ccdcc6ac3a8 (diff) | |
download | www-02b6ced8955cd5b773e958cd12f586b69933b84f.tar www-02b6ced8955cd5b773e958cd12f586b69933b84f.tar.gz www-02b6ced8955cd5b773e958cd12f586b69933b84f.tar.bz2 www-02b6ced8955cd5b773e958cd12f586b69933b84f.tar.xz www-02b6ced8955cd5b773e958cd12f586b69933b84f.zip |
Update simplepie to try to fix mga#32236
Diffstat (limited to 'lib/simplepie/library/SimplePie/Enclosure.php')
-rw-r--r-- | lib/simplepie/library/SimplePie/Enclosure.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/simplepie/library/SimplePie/Enclosure.php b/lib/simplepie/library/SimplePie/Enclosure.php index 32216d848..71cdd7d45 100644 --- a/lib/simplepie/library/SimplePie/Enclosure.php +++ b/lib/simplepie/library/SimplePie/Enclosure.php @@ -1152,7 +1152,12 @@ class SimplePie_Enclosure // If we encounter an unsupported mime-type, check the file extension and guess intelligently. if (!in_array($type, array_merge($types_flash, $types_fmedia, $types_quicktime, $types_wmedia, $types_mp3))) { - switch (strtolower($this->get_extension())) + $extension = $this->get_extension(); + if ($extension === null) { + return null; + } + + switch (strtolower($extension)) { // Audio mime-types case 'aac': @@ -1302,3 +1307,5 @@ class SimplePie_Enclosure return $type; } } + +class_alias('SimplePie_Enclosure', 'SimplePie\Enclosure', false); |