From e3d0deca0dc9e3333d2ee0fd557766480da734b1 Mon Sep 17 00:00:00 2001 From: Neku Date: Mon, 16 Dec 2013 09:41:36 +0100 Subject: maybe one more, we need new algo --- static/upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/upload.php b/static/upload.php index 65fde41..61388fd 100644 --- a/static/upload.php +++ b/static/upload.php @@ -27,7 +27,7 @@ function generate_name ($file) { $newname .= chr(mt_rand(ord("z"), ord("a"))); // + random lowercase letter $newname .= chr(mt_rand(ord("a"), ord("z"))); // + random lowercase letter $newname .= chr(mt_rand(ord("z"), ord("a"))); // + random lowercase letter - + $newname .= chr(mt_rand(ord("a"), ord("z"))); // + random lowercase letter // To add a dot or not after a file which has no extension if ($ext != '') $newname .= '.' . $ext; -- cgit v1.2.3