diff options
| author | Eric Johansson (neku) <neku@pomf.se> | 2014-12-19 17:16:37 +0100 |
|---|---|---|
| committer | Eric Johansson (neku) <neku@pomf.se> | 2014-12-19 17:16:37 +0100 |
| commit | f629677d4cad993472a557464e54f177886fa03f (patch) | |
| tree | 00cb0b6778dfaafdeed2699679ba489bb6605191 /static | |
| parent | fafaa5a96803eefa94551c8d7ab6026f3947710b (diff) | |
Update upload.php
Diffstat (limited to 'static')
| -rw-r--r-- | static/upload.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/static/upload.php b/static/upload.php index 4e1f968..c05f7cd 100644 --- a/static/upload.php +++ b/static/upload.php @@ -31,7 +31,8 @@ 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 + // In case of autism change this to your likings and put it in a loop before + // putting it 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 |
