Prevent search inputs to partecipate to wrapper form #16

Merged
edoardocavazza merged 1 commit from fix-form-partecipation into main 2022-10-08 08:50:52 +02:00
edoardocavazza commented 2022-10-07 17:16:57 +02:00 (Migrated from github.com)

When codemirror is used to edit a field that is part of a form, activating the search functionality will make panel inputs to partecipate to the form. This can lead to problems when the form uses security checks such as CSRF tokens and only certain fields are allowed. In some borderline cases, when there are other inputs with name="search" or name="replace" it might override the values previously entered.

Setting the form="", those input will be ignored by form submission.

When codemirror is used to edit a field that is part of a form, activating the search functionality will make panel inputs to partecipate to the form. This can lead to problems when the form uses security checks such as CSRF tokens and only certain fields are allowed. In some borderline cases, when there are other inputs with `name="search"` or `name="replace"` it might override the values previously entered. Setting the `form=""`, those input will be ignored by form submission.
marijnh commented 2022-10-08 08:50:56 +02:00 (Migrated from github.com)

Thanks!

Thanks!
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/search!16
No description provided.