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
use preg instead of ereg
[wfpl.git]
/
fdb.php
diff --git
a/fdb.php
b/fdb.php
index
3716ea6
..
5550464
100644
(file)
--- a/
fdb.php
+++ b/
fdb.php
@@
-46,8
+46,8
@@
function fdb_get_dir() {
function fdb_fix_key($key) {
function fdb_fix_key($key) {
- $key = ereg_replace('[^a-z0-9.-]', '_', strtolower($key));
- $key = ereg_replace('^[-.]', '_', strtolower($key));
+ $key = preg_replace('|[^a-z0-9.-]|', '_', strtolower($key));
+ $key = preg_replace('|^[-.]|', '_', strtolower($key));
return substr($key, 0, 32);
}
return substr($key, 0, 32);
}