Author: sparky
Date: Thu Oct 22 15:25:05 2009
New Revision: 10814

Modified:
   toys/rsget.pl/RSGet/Curl.pm
Log:
- allow upper case and mixed case content-disposition


Modified: toys/rsget.pl/RSGet/Curl.pm
==============================================================================
--- toys/rsget.pl/RSGet/Curl.pm (original)
+++ toys/rsget.pl/RSGet/Curl.pm Thu Oct 22 15:25:05 2009
@@ -185,14 +185,14 @@
 {
        # TODO: actually read rfc2183 and rfc2184
        local $_ = shift;
-       my $src = $_;
 
        s/\s*;?\s+$//; # remove at least last \r
-       unless ( s/^\s*attachment;\s*// ) {
+       my $src = $_;
+       unless ( s/^\s*attachment;\s*//i ) {
                warn "Not an attachment in C-D: '$src'\n" if verbose( 1 );
                return;
        }
-       unless ( s/^(.*?\s+)?filename// ) {
+       unless ( s/^(.*?\s+)?filename//i ) {
                warn "No filename in C-D: '$src'\n" if verbose( 1 );
                return;
        }
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to