summaryrefslogtreecommitdiff
path: root/upload.php
diff options
context:
space:
mode:
authorGravatar steering72532026-06-24 10:02:11 +0000
committerGravatar steering72532026-06-24 10:02:11 +0000
commitfb72d49b4c8a4705b0286ff64b2f6ea936828f15 (patch)
tree004affbeafbfbab8d6dbe90b4b7021efa1b5ccde /upload.php
parentignore non-posts (i.e. for missing files like favicon) (diff)
fix curl uploads - allow PUT as well
Diffstat (limited to 'upload.php')
-rw-r--r--upload.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/upload.php b/upload.php
index 34c7668..c13b193 100644
--- a/upload.php
+++ b/upload.php
@@ -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;
}