summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-07-13 23:31:56 +0200
committerDerek Jones <derek.jones@ellislab.com>2008-07-13 23:31:56 +0200
commitefb5a0d158d778016ffc5d299628282b33c21e89 (patch)
tree32ffedeb0ccbf3f188da8fdf16fa25b0c2b0f6cd /system
parent13da683d88dbfba9636792209a2f81a36a0330c8 (diff)
removed unnecessary foreach() loop for a str_replace()
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Upload.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php
index 23e52e403..25e143567 100644
--- a/system/libraries/Upload.php
+++ b/system/libraries/Upload.php
@@ -707,10 +707,7 @@ class CI_Upload {
"%3d" // =
);
- foreach ($bad as $val)
- {
- $filename = str_replace($val, '', $filename);
- }
+ $filename = str_replace($bad, '', $filename);
return stripslashes($filename);
}