]>
Commit | Line | Data |
---|---|---|
301e3f04 ER |
1 | --- cvsspam.rb 2005-07-26 17:17:23.000000000 +0100 |
2 | +++ cvsspam.rb-fix 2005-07-26 17:17:18.000000000 +0100 | |
3 | @@ -116,6 +116,8 @@ | |
4 | UNDERSCORE = chr("_") | |
5 | SPACE = chr(" ") | |
6 | TAB = chr("\t") | |
7 | + HOOK = chr("?") | |
8 | + EQUALS = chr("=") | |
9 | ||
10 | # encode a header value according to the RFC-2047 quoted-printable spec, | |
11 | # allowing non-ASCII characters to appear in header values, and wrapping | |
12 | @@ -137,7 +139,7 @@ | |
13 | # return a string representing the given character-code in quoted-printable | |
14 | # format | |
15 | def quoted_encode_char(b) | |
16 | - if b>126 || b==UNDERSCORE || b==TAB | |
17 | + if b>126 || b==UNDERSCORE || b==TAB || b==HOOK || b==EQUALS | |
18 | sprintf("=%02x", b) | |
19 | elsif b == SPACE | |
20 | "_" |