When a form is submitted but none of the inputs have names and the form scope is dumped, an error is thrown

Description

Make a form with method POST and an <input> with no name property. Submit it with a bx:dump on the page and a “Range [0, -1) out of bounds for length 0” appears.

Attachments

3

Activity

Show:

Brad Wood February 27, 2025 at 8:07 PM

Can you please test this on the lastest forgebox engine (building now)

Jon Clausen February 23, 2025 at 10:26 PM

That is probably how it should be then - just ignore any unnamed form params

Dan Card February 23, 2025 at 10:20 PM

Looks like Lucee just dumps out an empty form scope.

image-20250223-221746.png

and so does Adobe 2023

image-20250223-222012.png

Just needs some defensive coding?

Jon Clausen February 23, 2025 at 9:42 PM

when you dump this in Lucee or ACF what did you see? Could you paste a screenshot?

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created February 23, 2025 at 8:42 PM
Updated February 27, 2025 at 8:07 PM
Resolved February 27, 2025 at 8:07 PM

Flag notifications