From 8d14ca5b70c3a52172c4fbd187557f20e0fb0522 Mon Sep 17 00:00:00 2001 From: "Eric Johansson (neku)" Date: Sat, 20 Dec 2014 03:07:32 +0100 Subject: Update upload.php --- static/upload.php | 1 + 1 file changed, 1 insertion(+) (limited to 'static/upload.php') diff --git a/static/upload.php b/static/upload.php index 780eb5b..3fd4c31 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'); //Random filename generator + $newname=''; $startNumber = ord("a"); $endNumber = ord("z"); for ($i = 0; $i < 6; $i++) { -- cgit v1.2.3