Skip to content

Encode form name#7515

Open
labkey-matthewb wants to merge 26 commits intodevelopfrom
fb_encodeFormName
Open

Encode form name#7515
labkey-matthewb wants to merge 26 commits intodevelopfrom
fb_encodeFormName

Conversation

@labkey-matthewb
Copy link
Copy Markdown
Contributor

@labkey-matthewb labkey-matthewb commented Mar 23, 2026

Rationale

Whereas browsers seem to have trouble property formatting multipart/form-data POSTs, we will encode form names that include these three characters: % " \

For backward compatibility we will identify encoded field names by prepending %_.

quf_name -> quf_name
quf_why"? -> %_quf_why%22%3F

Related Pull Requests

Changes

@labkey-matthewb labkey-matthewb changed the title Fb encode form name Encode form name Mar 25, 2026
@labkey-matthewb labkey-matthewb marked this pull request as ready for review March 25, 2026 16:56
@LabKey LabKey deleted a comment from github-actions bot Mar 25, 2026
return ret;
}

static final String FORM_DATE_ENCODED_PARAM = "formDataEncoded";
Copy link
Copy Markdown
Contributor

@labkey-nicka labkey-nicka Mar 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like we need more client-side updates as formDataEncoded is no longer necessary. This encoding is being performed for all forms.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was hoping encodeFormDataQuote() would cover the client-side code change.

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.

2 participants