diff --git a/libraries/joomla/filter/input.php b/libraries/joomla/filter/input.php index 821055051d22a..0f13365663c15 100644 --- a/libraries/joomla/filter/input.php +++ b/libraries/joomla/filter/input.php @@ -439,7 +439,7 @@ public static function isSafeFile($file, $options = array()) if (!empty($options['forbidden_extensions'])) { $explodedName = explode('.', $intendedName); - array_reverse($explodedName); + $explodedName = array_reverse($explodedName); array_pop($explodedName); array_map('strtolower', $explodedName);