Repository navigation
Prevent url smashing from prompted inputs - #9231
Merged
softwarefactory-delete-me[bot] merged 1 commit intoFeb 4, 2021
Merged
Conversation
jakemcdermott
force-pushed
the
fix-9229
branch
from
February 4, 2021 04:22
f32248e to
14686e8
Compare
Contributor
|
Build succeeded.
|
jakemcdermott
requested review from
jlmitch5,
keithjgrant,
mabashian and
marshmalien
February 4, 2021 04:33
marshmalien
approved these changes
Feb 4, 2021
| <Form> | ||
| <Form | ||
| onSubmit={e => { | ||
| e.preventDefault(); |
Contributor
|
Build succeeded (gate pipeline).
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.