EWS: workaround for user reported issue, less strict filter in isItemId

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2220 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2014-01-29 23:05:31 +00:00
parent 0c6964ccd8
commit 83ba895e51
1 changed files with 2 additions and 1 deletions

View File

@ -2532,7 +2532,8 @@ public class EwsExchangeSession extends ExchangeSession {
protected static boolean isItemId(String itemName) { protected static boolean isItemId(String itemName) {
return itemName.length() >= 152 return itemName.length() >= 152
// item name is base64url // item name is base64url
&& itemName.matches("^([A-Za-z0-9-_]{4})*([A-Za-z0-9-_]{4}|[A-Za-z0-9-_]{3}=|[A-Za-z0-9-_]{2}==)$"); //&& itemName.matches("^([A-Za-z0-9-_]{4})*([A-Za-z0-9-_]{4}|[A-Za-z0-9-_]{3}=|[A-Za-z0-9-_]{2}==)$")
&& itemName.indexOf(' ') < 0;
} }