Issue Type: Bug Bug
Assignee: Alex Earl
Components: email-ext
Created: 24/May/13 8:07 PM
Description:

The groovy-html template does not correctly encode getLog() content as HTML in the email. For example, less than (<) and greater than (>) characters, which are used frequently in junit failure messages sometimes disappear in the email messages.

If you look at https://github.com/jenkinsci/email-ext-plugin/blob/master/src/main/resources/hudson/plugins/emailext/templates/groovy-html.template

You'll see

<% build.getLog(100).each() { line -> %>
<TR><TD class="console">${line}</TD></TR>
<% } %>

The $line needs to be HTML encoded.

Project: Jenkins
Priority: Major Major
Reporter: Josh Unger
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to