Update of
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/publisher
In directory james.mmbase.org:/tmp/cvs-serv30969
Modified Files:
NewsletterGenerator.java
Log Message:
CMSC-1084, Newsletter: sending test email contains empty body,add error
messages to print out the system live-path use http
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/publisher
See also: http://www.mmbase.org/jira/browse/CMSC-1084
Index: NewsletterGenerator.java
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/publisher/NewsletterGenerator.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- NewsletterGenerator.java 23 Oct 2008 08:51:47 -0000 1.15
+++ NewsletterGenerator.java 24 Oct 2008 02:39:50 -0000 1.16
@@ -32,7 +32,7 @@
log.debug("Try to get content from URL:" + urlPath);
URL url = new URL(urlPath);
- if (!Pattern.matches("http://(\\w+(-\\w+)*)(\\.(\\w+(-\\w+)*))*(\\
?\\S*)?$", urlPath)) {
+ if (urlPath.indexOf("http") < 0) {
errorInfo += "the path does not start with http:// ";
}
HttpURLConnection connection = (HttpURLConnection)
url.openConnection();
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs