-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Escape ghprbPullTitle properly #426
base: master
Are you sure you want to change the base?
Conversation
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
@@ -345,7 +345,7 @@ public void run() { | |||
values.add(new StringParameterValue("ghprbPullAuthorLoginMention", "@" + cause.getPullRequestAuthor().getLogin())); | |||
|
|||
values.add(new StringParameterValue("ghprbPullDescription", escapeText(String.valueOf(cause.getShortDescription())))); | |||
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())))); |
There was a problem hiding this comment.
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.
👍 i would love to see this PR merged (plus my suggestions to do the same thing for the description)! |
See comment on https://issues.jenkins-ci.org/browse/JENKINS-30947