Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix typo from preg/ereg change
[wfpl.git]
/
uploader.php
diff --git
a/uploader.php
b/uploader.php
index
0badb1a
..
e661882
100644
(file)
--- a/
uploader.php
+++ b/
uploader.php
@@
-94,8
+94,8
@@
function wfpl_uploader_progress() {
$file = $_REQUEST['wfpl_upload_progress'];
$file = strtolower($file);
$file = $_REQUEST['wfpl_upload_progress'];
$file = strtolower($file);
- $file = ereg_replace('[^a-z0-9.-]', '_', $file);
- $file = ereg_replace('^[.-]', '_', $file);
+ $file = preg_replace('|[^a-z0-9.-]|', '_', $file);
+ $file = preg_replace('|^[.-]|', '_', $file);
$file = $GLOBALS['wfpl_uploader_path'] . "/progress/$file";
$waited = 0;
$file = $GLOBALS['wfpl_uploader_path'] . "/progress/$file";
$waited = 0;