same for the next checkin...
git-svn-id: http://svn.simon-cozens.org/memories/trunk@40
041978f6-d955-411f-a9d7-
1d8545c9c3c7
my $mm = File::MMagic->new;
my $res = $mm->checktype_filename($filename);
warn "$filename is a $res\n";
- if ($res =~ m{/x-zip} or $offered_name =~ /t(ar\.)?gz/) {
+ if ($res =~ m{/x-zip} or $offered_name =~ /t(ar\.)?gz/i) {
return $self->upload_archive($r, $filename);
} elsif ($res =~ m{image/jpeg}) {
return $self->upload_jpeg($r, $filename, $offered_name);