]> git.decadent.org.uk Git - memories.git/commitdiff
It's unlikely we'll get DOS people doing that but reminds me to do the
authorSimon Cozens <simon@simon-cozens.org>
Sat, 24 Feb 2007 22:04:00 +0000 (22:04 +0000)
committerSimon Cozens <simon@simon-cozens.org>
Sat, 24 Feb 2007 22:04:00 +0000 (22:04 +0000)
same for the next checkin...

git-svn-id: http://svn.simon-cozens.org/memories/trunk@40 041978f6-d955-411f-a9d7-1d8545c9c3c7

Memories/Photo.pm

index 12016efb3cf93d610e7b4ed274b8ea736b55ebae..b7696b14befef481ace2a63fb958dca39e827ef6 100644 (file)
@@ -94,7 +94,7 @@ sub upload_file {
     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);