From: Jakub Narebski Date: Sat, 16 Sep 2006 21:44:52 GMT Subject: Re: [PATCH] gitweb: use correct mime type even if filename has multiple dots. Message-ID: In-Reply-To: <20060916210933.GX17042@admingilde.org> 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