Skip to content

Commit

Permalink
Update $explodedName with reversed array
Browse files Browse the repository at this point in the history
With reference to issue #7813

array_reverse returns the reversed array, it does not change the original array.
  • Loading branch information
Ryan Demmer committed Sep 4, 2015
1 parent a0ad388 commit fdb6625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/joomla/filter/input.php
Expand Up @@ -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);

Expand Down

0 comments on commit fdb6625

Please sign in to comment.