From: Kay Sievers Date: Sun, 18 Sep 2005 21:39:13 GMT Subject: Re: first impressions to git Message-ID: <20050918213913.GC13315@vrfy.org> In-Reply-To: <20050918211855.GA1463@schottelius.org> On Sun, Sep 18, 2005 at 11:18:56PM +0200, Nico -telmich- Schottelius wrote: > First of all, thanks for that many very good explaining answers. > Than I tried gitweb.cgi, which seems to have a small bug validating input: > > if ($input =~ m/(^|\/)(|\.|\.\.)($|\/)/) { > > This also matches a cLinux/cinit.git as far as I can see. > I use '(^|\/)(\.\.|\.)($|\/)' currently, but I am not totally sure, whether > this is correct. It fails cause you have a "non canonical" file name with a trailing slash. > You can see the original version on > http://linux.schottelius.org/cgi-bin/gitweb-orig.cgi > and my modified version on > http://linux.schottelius.org/cgi-bin/gitweb.cgi > > But perhaps the logic in gitweb.cgi should be changed: Just remove the trailing slash from your project name and everything should be fine. Kay