Skip to content

Commit

Permalink
Add more known parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Sep 12, 2024
1 parent db85fcb commit 975e264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/api_specvalidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static function run($uf, Qrequest $qreq) {
$param = [];
foreach (array_keys($_GET) as $n) {
if (!isset($known[$n])) {
if (!in_array($n, ["post", "base", "fn", "_"])
if (!in_array($n, ["post", "base", "fn", "forceShow", "cap", "actas", "_"])
&& ($n !== "p" || !($uf->paper ?? false))
&& !isset($known["*"])) {
self::error($qreq, "query param `{$n}` unknown");
Expand Down

0 comments on commit 975e264

Please sign in to comment.