Changeset 6079


Ignore:
Timestamp:
2003-12-02T14:48:27+13:00 (20 years ago)
Author:
jrm21
Message:

oops... became too liberal for attachment filenames... now fixed to not
match newline chars (but allow other whitespace in filenames)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/EMAILPlug.pm

    r6062 r6079  
    655655    }
    656656    my $filename="";
    657     if ($part_header =~ m@name=\"?([^\"]+)\"?@mis) {
     657    if ($part_header =~ m@name=\"?([^\"\n]+)\"?@mis) {
    658658    $filename=$1;
     659    $filename =~ s@\r?\s*$@@; # remove trailing space, if any
    659660    }
    660661   
Note: See TracChangeset for help on using the changeset viewer.