Skip to content

Escape ghprbPullTitle properly#426

Open
tknodell wants to merge 1 commit into
janinko:masterfrom
tknodell:JENKINS-30947
Open

Escape ghprbPullTitle properly#426
tknodell wants to merge 1 commit into
janinko:masterfrom
tknodell:JENKINS-30947

Conversation

@tknodell

Copy link
Copy Markdown

@ghost-api

Copy link
Copy Markdown

Can one of the admins verify this patch?

@alexkomis

Copy link
Copy Markdown

Can one of the admins verify this patch?

1 similar comment
@meruvasivakumari

Copy link
Copy Markdown

Can one of the admins verify this patch?

values.add(new StringParameterValue("ghprbPullTitle", String.valueOf(cause.getTitle())));
values.add(new StringParameterValue("ghprbPullTitle", escapeText(String.valueOf(cause.getTitle()))));
values.add(new StringParameterValue("ghprbPullLink", String.valueOf(cause.getUrl())));
values.add(new StringParameterValue("ghprbPullLongDescription", escapeText(String.valueOf(cause.getDescription()))));

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

i think the same thing needs to be done here. my descriptions often contain `` escaped quotes which cause shell failures.

@mortax

mortax commented Jul 29, 2017

Copy link
Copy Markdown

👍 i would love to see this PR merged (plus my suggestions to do the same thing for the description)!

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.

5 participants