summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorEric Johansson (neku) <neku@pomf.se>2014-12-20 03:07:32 +0100
committerEric Johansson (neku) <neku@pomf.se>2014-12-20 03:07:32 +0100
commit8d14ca5b70c3a52172c4fbd187557f20e0fb0522 (patch)
treedc214ebb623b6332dd38b7836a11495cf1bddf62 /static
parent3b9c6ba681a84fdeaf9d6dc32779dc87b225888a (diff)
Update upload.php
Diffstat (limited to 'static')
-rw-r--r--static/upload.php1
1 files changed, 1 insertions, 0 deletions
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++) {