Changeset 8904


Ignore:
Timestamp:
2005-01-17T17:12:58+13:00 (19 years ago)
Author:
jrm21
Message:

need to do qp decoding before doing text_into_html so we don't keep
line breaks that disappear after decoding

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/EMAILPlug.pm

    r8902 r8904  
    415415    $$textref=$self->text_from_mime_message($mimetype,$mimeinfo,$$textref);
    416416    } else { # mimetype eq text/plain
    417     $$textref = &text_into_html($$textref);
    418     $$textref =~ s@_@\\_@g; # protect against GS macro language
    419417
    420418    if ($transfer_encoding =~ /quoted\-printable/) {
     
    424422    }
    425423    $self->convert2unicode($charset, $textref);
     424
     425    $$textref = &text_into_html($$textref);
     426    $$textref =~ s@_@\\_@g; # protect against GS macro language
     427
    426428    }
    427429
     
    9981000      $highbytes =~ /^/g; # set pos()
    9991001      while ($highbytes =~
    1000          m!\G (?: [\xc0-\xdf][\x80-\xbf]    | # 2 byte utf-8
     1002         m!\G (?: [\xc0-\xdf][\x80-\xbf] | # 2 byte utf-8
    10011003               [\xe0-\xef][\x80-\xbf]{2} | # 3 byte
    1002                [\xf0-\xf7][\x80-\xbf]{3}   # 4 byte
    1003                [\xf8-\xfb][\x80-\xbf]{4}   # 5 byte
     1004               [\xf0-\xf7][\x80-\xbf]{3} | # 4 byte
     1005               [\xf8-\xfb][\x80-\xbf]{4} | # 5 byte
    10041006               [\xfc-\xfd][\x80-\xbf]{5}   # 6 byte
    10051007               )*([\x80-\xff])? !xg
Note: See TracChangeset for help on using the changeset viewer.