commit | efb5a0d158d778016ffc5d299628282b33c21e89 | [log] [tgz] |
---|---|---|
author | Derek Jones <derek.jones@ellislab.com> | Sun Jul 13 21:31:56 2008 +0000 |
committer | Derek Jones <derek.jones@ellislab.com> | Sun Jul 13 21:31:56 2008 +0000 |
tree | 32ffedeb0ccbf3f188da8fdf16fa25b0c2b0f6cd | |
parent | 13da683d88dbfba9636792209a2f81a36a0330c8 [diff] |
removed unnecessary foreach() loop for a str_replace()
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php index 23e52e4..25e1435 100644 --- a/system/libraries/Upload.php +++ b/system/libraries/Upload.php
@@ -707,10 +707,7 @@ "%3d" // = ); - foreach ($bad as $val) - { - $filename = str_replace($val, '', $filename); - } + $filename = str_replace($bad, '', $filename); return stripslashes($filename); }