diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-12-05 15:34:31 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-12-05 15:34:31 +1100 |
| commit | 290335194aecd5dace169c692e61c53d70021c3b (patch) | |
| tree | b49acfa8968944a2dd820e00413d20101c93aede /post.php | |
| parent | 0df1e4972d574b7b6193053b03423edea90b803a (diff) | |
integer overflow bug on 32-bit systems
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -316,7 +316,7 @@ if(isset($config['filename_func'])) $post['file_id'] = $config['filename_func']($post); else - $post['file_id'] = floor(microtime(true) * 1000); + $post['file_id'] = time() . substr(microtime(), 2, 3); $post['file'] = $board['dir'] . $config['dir']['img'] . $post['file_id'] . '.' . $post['extension']; $post['thumb'] = $board['dir'] . $config['dir']['thumb'] . $post['file_id'] . '.' . ($config['thumb_ext'] ? $config['thumb_ext'] : $post['extension']); |
