diff options
| author | 2026-06-24 10:02:11 +0000 | |
|---|---|---|
| committer | 2026-06-24 10:02:11 +0000 | |
| commit | fb72d49b4c8a4705b0286ff64b2f6ea936828f15 (patch) | |
| tree | 004affbeafbfbab8d6dbe90b4b7021efa1b5ccde | |
| parent | ignore non-posts (i.e. for missing files like favicon) (diff) | |
fix curl uploads - allow PUT as well
| -rw-r--r-- | upload.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6,7 +6,7 @@ if (isset($_GET['df'])) { system("df -h --output=avail / | tail -1"); exit; } -if ($_SERVER['REQUEST_METHOD'] != 'POST') { +if ($_SERVER['REQUEST_METHOD'] != 'POST' && $_SERVER['REQUEST_METHOD'] != 'PUT') { exit; } |
