From: Jakub Narebski Date: Thu, 09 Nov 2006 10:02:55 GMT Subject: Re: [PATCH] gitweb: protect blob and diff output lines from controls. Message-ID: <200611091102.56565.jnareb@gmail.com> In-Reply-To: <7vlkmlkkq8.fsf@assigned-by-dhcp.cox.net> Junio C Hamano wrote: > [...]  There is another > thing I noticed while testing it with an artifitial test that I > haven't fixed, but I think you already know about it (when the > commitdiff is completely empty except mode changes, we end up > with unbalanced div).  My test's tip can be found at > 'gitweb-test-funny-char' branch temporarily in the git.git > repository. Damn. I thought I corrected this on resend... if ($patch_found) { # close extended header for previous empty patch if ($in_header) { print "\n" # class="diff extended_header" } # close previous patch print "\n"; # class="patch" } -- Jakub Narebski