mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
MERGE V3.2 to HEAD
19301 - RECORD ONLY - ALF-2026 - imap.server.web.application.context.url does not have any effect 19258 - ALF-751- Email server does not accept email where Subject ends with a period git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19315 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -406,7 +406,7 @@ public class SubethaEmailMessage implements EmailMessage
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Replaces characters \/*|:"<>? on their hex values. Subject field is used as name of the content, so we need to replace characters that are forbidden in content names.
|
* Replaces characters \/*|:"<>?. on their hex values. Subject field is used as name of the content, so we need to replace characters that are forbidden in content names.
|
||||||
*
|
*
|
||||||
* @param subject String representing subject
|
* @param subject String representing subject
|
||||||
* @return Encoded string
|
* @return Encoded string
|
||||||
@@ -415,7 +415,7 @@ public class SubethaEmailMessage implements EmailMessage
|
|||||||
{
|
{
|
||||||
String result = subject.trim();
|
String result = subject.trim();
|
||||||
String[][] s = new String[][] { { "\\", "%5c" }, { "/", "%2f" }, { "*", "%2a" }, { "|", "%7c" }, { ":", "%3a" }, { "\"", "%22" }, { "<", "%3c" }, { ">", "%3e" },
|
String[][] s = new String[][] { { "\\", "%5c" }, { "/", "%2f" }, { "*", "%2a" }, { "|", "%7c" }, { ":", "%3a" }, { "\"", "%22" }, { "<", "%3c" }, { ">", "%3e" },
|
||||||
{ "?", "%3f" } };
|
{ "?", "%3f" }, { ".", "%2e" } };
|
||||||
|
|
||||||
for (int i = 0; i < s.length; i++)
|
for (int i = 0; i < s.length; i++)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user