diff options
| author | Eric Johansson (neku) <neku@pomf.se> | 2014-12-20 03:43:09 +0100 |
|---|---|---|
| committer | Eric Johansson (neku) <neku@pomf.se> | 2014-12-20 03:43:09 +0100 |
| commit | e7037cae0b1b8e2b231b6f88b627e5bcf6b3c485 (patch) | |
| tree | 6e7787a44e4e9c9a5841ba7ae20874baba6ba1e3 /static | |
| parent | 39cb29500fe7e251972c933db03cc8e705a7fe40 (diff) | |
removed disgusting "
Diffstat (limited to 'static')
| -rw-r--r-- | static/upload.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/static/upload.php b/static/upload.php index ad4cdc7..43b0c31 100644 --- a/static/upload.php +++ b/static/upload.php @@ -28,8 +28,8 @@ 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"); + $startNumber = ord('a'); + $endNumber = ord('z'); for ($i = 0; $i < 6; $i++) { $newname .= chr(mt_rand($startNumber, $endNumber)); } |
