tighten permission checks and input validation across the api
This commit is contained in:
47 files changed
+721
-225
No files matched your search
@@ -602,7 +602,9 @@
|
||||
hasErrors = true;
|
||||
}
|
||||
|
||||
if (formWebhookEnabled && !formWebhookSecret.trim()) {
|
||||
// A secret is required unless the instance opted into secret-less webhooks
|
||||
// (ALLOW_WEBHOOKS_WITHOUT_SECRET, for isolated networks) - mirror the server.
|
||||
if (formWebhookEnabled && !formWebhookSecret.trim() && !$page.data.allowSecretlessWebhook) {
|
||||
errors.webhookSecret = 'A webhook secret is required when the webhook is enabled';
|
||||
hasErrors = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user