Skip to content
Snippets Groups Projects
Commit 43f144b7 authored by Dirk Furrer's avatar Dirk Furrer
Browse files

no-jira: bugfix, changed from replaceAll() to replace() because there is no...

no-jira: bugfix, changed from replaceAll() to replace() because there is no need for a regular expression which leads to a redscreen when a bad groupname is given
parent d7091c97
No related branches found
No related tags found
No related merge requests found
...@@ -226,10 +226,10 @@ public class BGMailHelper { ...@@ -226,10 +226,10 @@ public class BGMailHelper {
groupdescription = (group instanceof BusinessGroup ? groupdescription = (group instanceof BusinessGroup ?
FilterFactory.getHtmlTagAndDescapingFilter().filter(((BusinessGroup)group).getDescription()) : ""); FilterFactory.getHtmlTagAndDescapingFilter().filter(((BusinessGroup)group).getDescription()) : "");
subject = subject.replaceAll("\\$groupname", groupname == null ? "" : groupname); subject = subject.replace("$groupname", groupname == null ? "" : groupname);
body = body.replaceAll("\\$groupname", groupname == null ? "" : groupname); body = body.replace("$groupname", groupname == null ? "" : groupname);
body = body.replaceAll("\\$groupdescription", groupdescription == null ? "" : groupdescription); body = body.replace("$groupdescription", groupdescription == null ? "" : groupdescription);
body = body.replaceAll("\\$courselist", courselist == null ? "" : courselist); body = body.replace("$courselist", courselist == null ? "" : courselist);
} else { } else {
courselist = ""; courselist = "";
groupname = ""; groupname = "";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment