diff options
| author | 2026-07-06 07:10:54 +0000 | |
|---|---|---|
| committer | 2026-07-06 07:11:31 +0000 | |
| commit | eee263f2fd0329715b9b76f068672b023cd2f716 (patch) | |
| tree | 4fbe8a51b64d610bd606458f1c4c29e2ffbc1ddb | |
| parent | updates - mostly adding filename to urls and switch to sha512/256 (diff) | |
| -rw-r--r-- | upload.php | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -101,13 +101,16 @@ function die_error($s) { function unsafe_get_extension($file) { - if ($file === '') { + if ($file == '') { return '/file'; } $ext = strrchr($file, '/'); if (FALSE === $ext) { return '/'.$file; } + if ($ext == '/') { + return '/file'; + } return $ext; } function get_extension($file) { |
