summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorEric Johansson (neku) <neku@pomf.se>2014-12-20 03:43:09 +0100
committerEric Johansson (neku) <neku@pomf.se>2014-12-20 03:43:09 +0100
commite7037cae0b1b8e2b231b6f88b627e5bcf6b3c485 (patch)
tree6e7787a44e4e9c9a5841ba7ae20874baba6ba1e3 /static
parent39cb29500fe7e251972c933db03cc8e705a7fe40 (diff)
removed disgusting "
Diffstat (limited to 'static')
-rw-r--r--static/upload.php4
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));
}