We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36d8999 commit cad0fbfCopy full SHA for cad0fbf
1 file changed
services/security.js
@@ -588,6 +588,7 @@ export function isKnownBotIp(ip) {
588
}
589
590
export function checkHoneypot(body) {
591
+ if (!body || typeof body !== 'object') return { triggered: false };
592
const honeypotFields = ['website', 'url', 'homepage', 'message2', 'confirm_email', 'fax', 'phone2'];
593
for (const field of honeypotFields) {
594
if (body[field] !== undefined && body[field] !== '' && body[field] !== null) {
0 commit comments