Quote question marks in content-disposition
This commit ensures that question marks are encoded, in accordance with RFC 2047, section 4.2, rule (3). Closes gh-30252
This commit is contained in:
@@ -599,7 +599,7 @@ public final class ContentDisposition {
|
||||
}
|
||||
|
||||
private static boolean isPrintable(byte c) {
|
||||
return (c >= '!' && c <= '<') || (c >= '>' && c <= '~');
|
||||
return (c >= '!' && c <= '<') || (c >= '@' && c <= '~') || c == '>';
|
||||
}
|
||||
|
||||
private static String encodeQuotedPairs(String filename) {
|
||||
|
||||
Reference in New Issue
Block a user