From fafaa5a96803eefa94551c8d7ab6026f3947710b Mon Sep 17 00:00:00 2001 From: "Eric Johansson (neku)" Date: Fri, 19 Dec 2014 17:16:06 +0100 Subject: Update upload.php --- static/upload.php | 1 + 1 file changed, 1 insertion(+) (limited to 'static') diff --git a/static/upload.php b/static/upload.php index 01d5262..4e1f968 100644 --- a/static/upload.php +++ b/static/upload.php @@ -31,6 +31,7 @@ function generate_name ($file) { if ($tries-- == 0) throw new Exception('Gave up trying to find an unused name'); // TODO: come up with a better name generating algorithm, stop repeating myself. + // In case of autism change this to your likings and put it in a loop before putting on a production server $newname = ''; // Filename Generator: $newname .= chr(mt_rand(ord("a"), ord("z"))); // + random lowercase letter $newname .= chr(mt_rand(ord("a"), ord("z"))); // + random lowercase letter -- cgit v1.2.3