diff options
| author | Mark Wells <mark@freeside.biz> | 2015-07-10 16:38:28 -0700 |
|---|---|---|
| committer | Mark Wells <mark@freeside.biz> | 2015-07-10 16:38:28 -0700 |
| commit | 0ed195595b5c7ea404c8848d9d1881ada4214489 (patch) | |
| tree | 6d6f3fe6e980cd123ff7a648d27fb9eb6b16ab13 /rt/share/html/Download/CustomFieldValue/dhandler | |
| parent | af05c3dda381122e0a45f72dbc0b4e9492f13fe7 (diff) | |
| parent | df4a68099abfa067014f36f92874fccefdea662e (diff) | |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'rt/share/html/Download/CustomFieldValue/dhandler')
| -rw-r--r-- | rt/share/html/Download/CustomFieldValue/dhandler | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rt/share/html/Download/CustomFieldValue/dhandler b/rt/share/html/Download/CustomFieldValue/dhandler index 45157169c..aba60042f 100644 --- a/rt/share/html/Download/CustomFieldValue/dhandler +++ b/rt/share/html/Download/CustomFieldValue/dhandler @@ -61,13 +61,13 @@ unless ($OCFV->id) { Abort("Bad OCFV id. Couldn't find OCFV '$id'\n"); } -my $content_type = $OCFV->ContentType || 'text/plain'; +my $content_type = $OCFV->ContentType || 'text/plain; charset=utf-8'; if (RT->Config->Get('AlwaysDownloadAttachments')) { $r->headers_out->{'Content-Disposition'} = "attachment"; } elsif (!RT->Config->Get('TrustHTMLAttachments')) { - $content_type = 'text/plain' if ($content_type =~ /^text\/html/i); + $content_type = 'text/plain; charset=utf-8' if ($content_type =~ /^text\/html/i); } $r->content_type( $content_type ); |
