diff options
author | Derek Jones <derek.jones@ellislab.com> | 2008-07-13 23:31:56 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2008-07-13 23:31:56 +0200 |
commit | efb5a0d158d778016ffc5d299628282b33c21e89 (patch) | |
tree | 32ffedeb0ccbf3f188da8fdf16fa25b0c2b0f6cd | |
parent | 13da683d88dbfba9636792209a2f81a36a0330c8 (diff) |
removed unnecessary foreach() loop for a str_replace()
-rw-r--r-- | system/libraries/Upload.php | 5 |
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);
}
|