diff options
author | ivan <ivan> | 2007-09-14 02:14:07 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-09-14 02:14:07 +0000 |
commit | 98d8b209eaa505466f20f3a4e2f8e597def34852 (patch) | |
tree | 73c7b79463b26ebebdde3b251e193bd20f8025b4 /rt | |
parent | bd7aa0bce3521c871d42646f5a349a2abefe763e (diff) |
turn off Text::Quoted usage, it segfaults and its optional
Diffstat (limited to 'rt')
-rw-r--r-- | rt/html/Ticket/Elements/ShowTransactionAttachments | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/rt/html/Ticket/Elements/ShowTransactionAttachments b/rt/html/Ticket/Elements/ShowTransactionAttachments index 9a66ee780..b014d07c6 100644 --- a/rt/html/Ticket/Elements/ShowTransactionAttachments +++ b/rt/html/Ticket/Elements/ShowTransactionAttachments @@ -139,8 +139,14 @@ unless ( ($message->GetHeader('Content-Disposition')||"") =~ /attachment/i ) { # if it's a text/plain show the body elsif ( $message->ContentType =~ m{^(text|message|text)}i ) { - eval { require Text::Quoted; $content = Text::Quoted::extract($content); }; - if ($@) { 1; } + #don't want to use this even if it is installed, its + #segfaulting on weird characters and silently truncating the + #ticket history output + #see: + # r44838@pinglin: jesse | 2006-11-14 15:53:18 -0500 + # * Move Text::Quoted back to being a run-time require. So that it's possible to turn off the feature if it causes your perl to segfault. (Text::Tabs is...not robust in the face of perl bugs) + #eval { require Text::Quoted; $content = Text::Quoted::extract($content); }; + #if ($@) { 1; } $m->comp( 'ShowMessageStanza', |