mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 19:22:22 -05:00
Caldav: Need to encode % in urlcompname
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1765 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
e9c9aad7b9
commit
f321f6de76
@ -131,6 +131,7 @@ public final class StringUtil {
|
||||
private static final Pattern AMP_PATTERN = Pattern.compile("&");
|
||||
private static final Pattern LT_PATTERN = Pattern.compile("<");
|
||||
private static final Pattern GT_PATTERN = Pattern.compile(">");
|
||||
private static final Pattern PERCENT_PATTERN = Pattern.compile("%");
|
||||
|
||||
private static final Pattern QUOTE_PATTERN = Pattern.compile("\"");
|
||||
private static final Pattern CR_PATTERN = Pattern.compile("\r");
|
||||
@ -307,6 +308,9 @@ public final class StringUtil {
|
||||
if (result.indexOf("_x000D__x000A_") >= 0) {
|
||||
result = X0D0A_PATTERN.matcher(result).replaceAll("\r\n");
|
||||
}
|
||||
if (result.indexOf('%') >= 0) {
|
||||
result = PERCENT_PATTERN.matcher(result).replaceAll("%25");
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user