updated with minor fix
This commit is contained in:
parent
3f8074506a
commit
29b18bd752
|
@ -41,11 +41,14 @@ public class MailForm extends MVCPortlet {
|
||||||
HttpServletRequest request = PortalUtil.getHttpServletRequest(actionRequest);
|
HttpServletRequest request = PortalUtil.getHttpServletRequest(actionRequest);
|
||||||
String hostname = PortalUtil.getHost(actionRequest);
|
String hostname = PortalUtil.getHost(actionRequest);
|
||||||
System.out.println("hostname to split:" + hostname);
|
System.out.println("hostname to split:" + hostname);
|
||||||
String[] splits = hostname.split("www.");
|
|
||||||
String emailAddress = "info@d4science.org";
|
String emailAddress = "info@d4science.org";
|
||||||
|
if (hostname.equalsIgnoreCase("gcube-system.org")) {
|
||||||
|
emailAddress = "info@gcube-system.org";
|
||||||
|
} else {
|
||||||
|
String[] splits = hostname.split("www.");
|
||||||
if (splits.length > 1)
|
if (splits.length > 1)
|
||||||
emailAddress = "info@"+ hostname.split("www.")[1];
|
emailAddress = "info@"+ hostname.split("www.")[1];
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
/**
|
/**
|
||||||
* This is the actual code which validate captcha data entered by user.
|
* This is the actual code which validate captcha data entered by user.
|
||||||
|
|
Loading…
Reference in New Issue