Subject: Re: [PATCH] gitweb: use correct mime type even if filename has multiple dots.

From: Jakub Narebski <[email-masked]>
Date: Sat, 16 Sep 2006 23:44:52 +0200

Martin Waitz wrote:

> Match the last part of the filename agains the extention from the
> mime database instead of insisting that it starts at the first dot.
[...]
> -     $filename =~ /\.(.*?)$/;
> -     return $mimemap{$1};

Actually, that is non-greedy match, so the above code insist that 
extension starts at the _last_ dot.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git