]> git.pld-linux.org Git - packages/cvsspam.git/blob - cvsspam-rfc2047_special_chars.patch
- issue xxx patch, rel 6
[packages/cvsspam.git] / cvsspam-rfc2047_special_chars.patch
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        "_"
This page took 0.402495 seconds and 3 git commands to generate.