Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Commit

rt branch, 3.8-trunk, updated. rt-3.8.6-44-gfc58510

 

 

Request Tracker commit RSS feed   Index | Next | Previous | View Threaded


sunnavy at bestpractical

Oct 27, 2009, 11:13 PM

Post #1 of 1 (309 views)
Permalink
rt branch, 3.8-trunk, updated. rt-3.8.6-44-gfc58510

The branch, 3.8-trunk has been updated
via fc5851034f891f9302fc82a0ce735f8bb7d16828 (commit)
from 831d0a518146be36b4a331fee69bad364c054c70 (commit)

Summary of changes:
share/html/Tools/Offline.html | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit fc5851034f891f9302fc82a0ce735f8bb7d16828
Author: sunnavy <sunnavy [at] bestpractical>
Date: Wed Oct 28 14:11:37 2009 +0800

we should try to decode uploaded template for offline

diff --git a/share/html/Tools/Offline.html b/share/html/Tools/Offline.html
index ce9f4ea..9086197 100644
--- a/share/html/Tools/Offline.html
+++ b/share/html/Tools/Offline.html
@@ -115,6 +115,9 @@ if ($ARGS{'Parse'} && $ARGS{'Template'}) {
while ( my $bytesread = read( $fh, $buffer, 4096 ) ) {
$template .= $buffer;
}
+ my $encode = RT::I18N::_GuessCharset( $template );
+ require Encode;
+ $template = Encode::decode( $encode, $template );
$template =~ s/\r\n/\n/gs;
$action->Parse(Content => $template, Queue => $qname, Requestor => $requestoraddress);
foreach ( @{ $action->{'create_tickets'} } ) {

-----------------------------------------------------------------------
_______________________________________________
Rt-commit mailing list
Rt-commit [at] lists
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-commit

Request Tracker commit RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.