mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
Merge pull request #9231 from jakemcdermott/fix-9229
Prevent url smashing from prompted inputs Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
47de2ddcb5
@ -84,7 +84,11 @@ function CredentialPasswordsStep({ launchConfig, i18n }) {
|
||||
}
|
||||
|
||||
return (
|
||||
<Form>
|
||||
<Form
|
||||
onSubmit={e => {
|
||||
e.preventDefault();
|
||||
}}
|
||||
>
|
||||
{showcredentialPasswordSsh && (
|
||||
<PasswordField
|
||||
id="launch-ssh-password"
|
||||
|
||||
@ -22,7 +22,11 @@ const FieldHeader = styled.div`
|
||||
|
||||
function OtherPromptsStep({ launchConfig, i18n }) {
|
||||
return (
|
||||
<Form>
|
||||
<Form
|
||||
onSubmit={e => {
|
||||
e.preventDefault();
|
||||
}}
|
||||
>
|
||||
{launchConfig.ask_job_type_on_launch && <JobTypeField i18n={i18n} />}
|
||||
{launchConfig.ask_limit_on_launch && (
|
||||
<FormField
|
||||
|
||||
@ -33,7 +33,11 @@ function SurveyStep({ surveyConfig, i18n }) {
|
||||
float: NumberField,
|
||||
};
|
||||
return (
|
||||
<Form>
|
||||
<Form
|
||||
onSubmit={e => {
|
||||
e.preventDefault();
|
||||
}}
|
||||
>
|
||||
{surveyConfig.spec.map(question => {
|
||||
const Field = fieldTypes[question.type];
|
||||
return (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user