Merge remote-tracking branch 'upstream/develop' into writePerformance
This commit is contained in:
commit
97658ad25f
8 changed files with 24 additions and 10 deletions
|
@ -171,7 +171,7 @@ public class MailUsersServlet extends VitroHttpServlet {
|
||||||
msg.setSubject( deliveryfrom );
|
msg.setSubject( deliveryfrom );
|
||||||
|
|
||||||
// add the multipart to the message
|
// add the multipart to the message
|
||||||
msg.setContent(msgText,"text/html");
|
msg.setContent(msgText,"text/html; charset=UTF-8");
|
||||||
|
|
||||||
// set the Date: header
|
// set the Date: header
|
||||||
msg.setSentDate( new Date() );
|
msg.setSentDate( new Date() );
|
||||||
|
|
|
@ -276,7 +276,7 @@ public class ContactMailController extends FreemarkerHttpServlet {
|
||||||
msg.setSubject( deliveryfrom );
|
msg.setSubject( deliveryfrom );
|
||||||
|
|
||||||
// add the multipart to the message
|
// add the multipart to the message
|
||||||
msg.setContent(msgText,"text/html");
|
msg.setContent(msgText,"text/html; charset=UTF-8");
|
||||||
|
|
||||||
// set the Date: header
|
// set the Date: header
|
||||||
msg.setSentDate( new Date() );
|
msg.setSentDate( new Date() );
|
||||||
|
|
|
@ -172,15 +172,15 @@ public class FreemarkerEmailMessage {
|
||||||
if (htmlContent.isEmpty()) {
|
if (htmlContent.isEmpty()) {
|
||||||
log.error("Message has neither text body nor HTML body");
|
log.error("Message has neither text body nor HTML body");
|
||||||
} else {
|
} else {
|
||||||
msg.setContent(htmlContent, "text/html");
|
msg.setContent(htmlContent, "text/html; charset=UTF-8");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (htmlContent.isEmpty()) {
|
if (htmlContent.isEmpty()) {
|
||||||
msg.setContent(textContent, "text/plain");
|
msg.setContent(textContent, "text/plain; charset=UTF-8");
|
||||||
} else {
|
} else {
|
||||||
MimeMultipart content = new MimeMultipart("alternative");
|
MimeMultipart content = new MimeMultipart("alternative");
|
||||||
addBodyPart(content, textContent, "text/plain");
|
addBodyPart(content, textContent, "text/plain; charset=UTF-8");
|
||||||
addBodyPart(content, htmlContent, "text/html");
|
addBodyPart(content, htmlContent, "text/html; charset=UTF-8");
|
||||||
msg.setContent(content);
|
msg.setContent(content);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,7 @@ public class MailUtil {
|
||||||
msg.setSubject( subject );
|
msg.setSubject( subject );
|
||||||
|
|
||||||
// add the multipart to the message
|
// add the multipart to the message
|
||||||
msg.setContent(messageText,"text/html");
|
msg.setContent(messageText,"text/html; charset=UTF-8");
|
||||||
|
|
||||||
// set the Date: header
|
// set the Date: header
|
||||||
msg.setSentDate( new Date() );
|
msg.setSentDate( new Date() );
|
||||||
|
|
14
dependencies/pom.xml
vendored
14
dependencies/pom.xml
vendored
|
@ -192,7 +192,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.directwebremoting</groupId>
|
<groupId>org.directwebremoting</groupId>
|
||||||
<artifactId>dwr</artifactId>
|
<artifactId>dwr</artifactId>
|
||||||
<version>2.0.8</version>
|
<version>2.0.M2.8</version><!-- Resolved from VIVO repository as not in central; newer causes errors -->
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.freemarker</groupId>
|
<groupId>org.freemarker</groupId>
|
||||||
|
@ -214,6 +214,18 @@
|
||||||
<artifactId>antisamy</artifactId>
|
<artifactId>antisamy</artifactId>
|
||||||
<version>1.4.4</version>
|
<version>1.4.4</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<!-- Used for JSP runtime -->
|
||||||
|
<groupId>taglibs</groupId>
|
||||||
|
<artifactId>standard</artifactId>
|
||||||
|
<version>1.1.2</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<!-- Used for JSP runtime -->
|
||||||
|
<groupId>javax.servlet.jsp.jstl</groupId>
|
||||||
|
<artifactId>jstl-api</artifactId>
|
||||||
|
<version>1.2</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.vivoweb.dependencies</groupId>
|
<groupId>org.vivoweb.dependencies</groupId>
|
||||||
|
|
|
@ -34,8 +34,9 @@ ${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/search.css" />'
|
||||||
$('a#closeLink').click(function() {
|
$('a#closeLink').click(function() {
|
||||||
$('ul#advanced').css("visibility","hidden");
|
$('ul#advanced').css("visibility","hidden");
|
||||||
$('a#closeLink').css("visibility","hidden");
|
$('a#closeLink').css("visibility","hidden");
|
||||||
|
return false;
|
||||||
});
|
});
|
||||||
|
return false;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -34,8 +34,9 @@ ${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/search.css" />'
|
||||||
$('a#closeLink').click(function() {
|
$('a#closeLink').click(function() {
|
||||||
$('ul#advanced').css("visibility","hidden");
|
$('ul#advanced').css("visibility","hidden");
|
||||||
$('a#closeLink').css("visibility","hidden");
|
$('a#closeLink').css("visibility","hidden");
|
||||||
|
return false;
|
||||||
});
|
});
|
||||||
|
return false;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue