Open TSlivede opened 5 years ago
Pointed out by Aleksey on stackoverflow:
Line 347 in Util.cs should be if (codepoint > 0x1F && codepoint < 0x7F) { instead of if (codepoint > 0x1F && codepoint < 0x80) {
Util.cs
if (codepoint > 0x1F && codepoint < 0x7F) {
if (codepoint > 0x1F && codepoint < 0x80) {
Line 354 in Util.cs should be if (codepoint > 0x1F && codepoint < 0x7F) instead of if (codepoint > 0x1F && codepoint < 0x80)
if (codepoint > 0x1F && codepoint < 0x7F)
if (codepoint > 0x1F && codepoint < 0x80)
because according to RFC-3501
[...] All other characters (octet values 0x00-0x1f and 0x7f-0xff) are represented in modified BASE64 [...]
0x7F should not be passed through unencoded, because it is a control character (DEL) and not a printable ASCII-character.
DEL
Pointed out by Aleksey on stackoverflow:
Line 347 in
Util.cs
should beif (codepoint > 0x1F && codepoint < 0x7F) {
instead ofif (codepoint > 0x1F && codepoint < 0x80) {
Line 354 in
Util.cs
should beif (codepoint > 0x1F && codepoint < 0x7F)
instead ofif (codepoint > 0x1F && codepoint < 0x80)
because according to RFC-3501
0x7F should not be passed through unencoded, because it is a control character (
DEL
) and not a printable ASCII-character.