summaryrefslogtreecommitdiff
path: root/static/upload.php
diff options
context:
space:
mode:
authorEric Johansson (neku) <neku@pomf.se>2014-12-19 17:16:06 +0100
committerEric Johansson (neku) <neku@pomf.se>2014-12-19 17:16:06 +0100
commitfafaa5a96803eefa94551c8d7ab6026f3947710b (patch)
treeb3d0ff665cc853b4af3069300cf7a1918b9f9e4f /static/upload.php
parentfd01fc8cd534ada91f941c963858bb32e1b378f4 (diff)
Update upload.php
Diffstat (limited to 'static/upload.php')
-rw-r--r--static/upload.php1
1 files changed, 1 insertions, 0 deletions
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