Skip to content

Commit

Permalink
Item227: images with multiple '.' in the filename don't render thumbn…
Browse files Browse the repository at this point in the history
…ails

git-svn-id: http://svn.foswiki.org/trunk@1140 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
WillNorris authored and WillNorris committed Dec 3, 2008
1 parent 627bc23 commit 41c1573
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -106,7 +106,7 @@ sub isImage {
writeDebug("called isImage(". $attachment->{name}.")");

my $suffix = '';
if ($attachment->{name} =~ /\.(.+?)$/) {
if ($attachment->{name} =~ /.*\.(.+?)$/) {
$suffix = lc($1);
}

Expand Down

0 comments on commit 41c1573

Please sign in to comment.