Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Sep 12, 2024
1 parent ffccfbe commit c96ea9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion etc/apifunctions.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@
},
{
"name": "settings", "get": true, "post": true,
"function": "Settings_API::run"
"function": "Settings_API::run",
"parameters": ["?=settings", "?dryrun"]
},
{
"name": "shepherd", "paper": true, "get": true,
Expand Down
2 changes: 1 addition & 1 deletion src/api/api_specvalidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ static function run($uf, Qrequest $qreq) {
}
foreach (array_keys($_FILES) as $n) {
if (($t = self::lookup_param_type($n, $known, $has_suffix)) === null
|| ($t & self::F_FILE) === 0) {
|| ($t & (self::F_FILE | self::F_BODY)) === 0) {
if (!isset($known["*"])) {
self::error($qreq, "file param `{$n}` unknown");
}
Expand Down

0 comments on commit c96ea9a

Please sign in to comment.