diff options
| -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)); } |
