Skip to content

Prevent url smashing from prompted inputs - #9231

Merged
softwarefactory-delete-me[bot] merged 1 commit into
ansible:develfrom
jakemcdermott:fix-9229
Feb 4, 2021
Merged

softwarefactory-delete-me[bot] merged 1 commit into
ansible:develfrom
jakemcdermott:fix-9229

Conversation

@jakemcdermott

@jakemcdermott jakemcdermott commented Feb 4, 2021 •

Copy link
Copy Markdown
Contributor
SUMMARY

See: #9229

The launch prompts use forms on several steps. By default, the forms attempt to handle all Enter key-press events as a form submission. The default method for a raw html form is a GET request, so user input to the prompt fields will be injected into the url as query params when handling the key-press.

User input is collected by the launch prompts on multiple forms across several steps, so we should disable the default event handlers on the intermediate steps.

@softwarefactory-delete-me

Copy link
Copy Markdown
Contributor

Build succeeded.

<Form>
<Form
onSubmit={e => {
e.preventDefault();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

@softwarefactory-delete-me

Copy link
Copy Markdown
Contributor

Build succeeded (gate pipeline).

@softwarefactory-delete-me
softwarefactory-delete-me Bot merged commit 47de2dd into ansible:devel Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants