diff options
| author | 2026-06-24 04:36:04 -0400 | |
|---|---|---|
| committer | 2026-06-24 04:36:04 -0400 | |
| commit | fb7eeef427351f4746ce8111ba91d18076680339 (patch) | |
| tree | 8d64dd5e428624bd83b376ac999b2a6d3a6bbf3e /upload.php | |
| parent | init (diff) | |
ignore non-posts (i.e. for missing files like favicon)
Diffstat (limited to 'upload.php')
| -rw-r--r-- | upload.php | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -6,6 +6,9 @@ if (isset($_GET['df'])) { system("df -h --output=avail / | tail -1"); exit; } +if ($_SERVER['REQUEST_METHOD'] != 'POST') { + exit; +} $c_t = strtolower($_SERVER['HTTP_CONTENT_TYPE'] ?? ''); if ($c_t == 'multipart/form-data' || 0 === strpos($c_t, 'multipart/form-data;')) { |
