X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=blobdiff_plain;f=fdb.php;h=55504645da6191a839c3c0b0d388974fd1ece9ed;hp=3716ea6c74099297a771ca6b3e36a056fde94bad;hb=9a3136a5bee66e1055ffb566373952b6054dd7bf;hpb=fe9a487e1b5ed0700481aee4609055dc6c47505d diff --git a/fdb.php b/fdb.php index 3716ea6..5550464 100644 --- a/fdb.php +++ b/fdb.php @@ -46,8 +46,8 @@ function fdb_get_dir() { 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); }