[Rt-commit] rt branch, 4.0/remove-rt-mason-cgi, created. rt-4.0.2-186-gde70435

Thomas Sibley trs at bestpractical.com
Tue Oct 11 13:16:35 EDT 2011


The branch, 4.0/remove-rt-mason-cgi has been created
        at  de7043515c3b23e0ce560567574d77db776c6023 (commit)

- Log -----------------------------------------------------------------
commit de7043515c3b23e0ce560567574d77db776c6023
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Tue Oct 11 13:06:30 2011 -0400

    RT::Mason::CGI went the way of the dodo long ago
    
    Remove code that hasn't done anything useful since 2002 and just
    stringify the CGI.pm filehandle.

diff --git a/lib/RT/Interface/Web.pm b/lib/RT/Interface/Web.pm
index 801d2d1..9e7e141 100644
--- a/lib/RT/Interface/Web.pm
+++ b/lib/RT/Interface/Web.pm
@@ -1649,9 +1649,7 @@ sub MakeMIMEEntity {
 
             my $uploadinfo = $cgi_object->uploadInfo($filehandle);
 
-            # Prefer the cached name first over CGI.pm stringification.
-            my $filename = $RT::Mason::CGI::Filename;
-            $filename = "$filehandle" unless defined $filename;
+            my $filename = "$filehandle";
             $filename =~ s{^.*[\\/]}{};
 
             $Message->attach(

-----------------------------------------------------------------------


More information about the Rt-commit mailing list