Skip to content

fixed missing type validation on vetoed parameter in feature handler#7583

Open
harshitgupta62 wants to merge 1 commit into
XRPLF:developfrom
harshitgupta62:fix-vetoed-type-validation
Open

fixed missing type validation on vetoed parameter in feature handler#7583
harshitgupta62 wants to merge 1 commit into
XRPLF:developfrom
harshitgupta62:fix-vetoed-type-validation

Conversation

@harshitgupta62

Copy link
Copy Markdown

Fixes #6757

Adds an isBool() type check on the vetoed parameter in doFeature
before calling asBool(). Previously, sending a non-boolean value
(e.g. a string or null) for vetoed could either throw an unhandled
exception or silently coerce to false, accidentally triggering
unVeto() instead of returning a proper validation error.

Returns rpcINVALID_PARAMS when the type check fails, consistent
with the existing pattern in this codebase.

@harshitgupta62 harshitgupta62 force-pushed the fix-vetoed-type-validation branch from b4090a8 to 4919297 Compare June 22, 2026 20:37
@harshitgupta62 harshitgupta62 force-pushed the fix-vetoed-type-validation branch from 4919297 to d040617 Compare June 23, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing type validation on vetoed parameter in feature handler

1 participant