From: Petr Baudis Date: Fri, 6 Nov 2009 15:08:41 +0000 (+0100) Subject: gitweb: Fix blob linenr links in pathinfo mode X-Git-Tag: v1.6.5.3~6^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b9759f0762c17a5b7bc36af98613c67249931330;p=git.git gitweb: Fix blob linenr links in pathinfo mode In pathinfo mode, we use that refers to the base location of gitweb in order for various external media links to work well. However, this means that for the page to refer to itself, it must regenerate full link, and this is exactly what the blob view page did not do for line numbers. Signed-off-by: Petr Baudis Signed-off-by: Junio C Hamano --- diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 24b219310..184b683aa 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -5065,7 +5065,8 @@ sub git_blob { chomp $line; $nr++; $line = untabify($line); - printf "
%4i %s
\n", + printf "\n", $nr, $nr, $nr, esc_html($line, -nbsp=>1); } }