From: Kay Sievers Date: Sun, 20 Nov 2005 01:03:09 +0000 (+0100) Subject: add missing esc() rename X-Git-Tag: v1.4.0~1^2~37 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=afeaa5d8da4c4f1abde1a01285f6d612919c64ee;p=git.git add missing esc() rename Signed-off-by: Kay Sievers --- diff --git a/gitweb.cgi b/gitweb.cgi index a71d07032..afdae92e1 100755 --- a/gitweb.cgi +++ b/gitweb.cgi @@ -1308,7 +1308,8 @@ sub git_blob { " | " . $cgi->a({-href => esc_url("$my_uri?p=$project;a=commitdiff;h=$hash_base")}, "commitdiff") . " | " . $cgi->a({-href => esc_url("$my_uri?p=$project;a=tree;h=$co{'tree'};hb=$hash_base")}, "tree") . "
\n"; if (defined $file_name) { - print $cgi->a({-href => esc_url("$my_uri?p=$project;a=blob_plain;h=$hash;f=$file_name")}, "plain") . "
\n"; + print $cgi->a({-href => esc_url("$my_uri?p=$project;a=blob_plain;h=$hash;f=$file_name")}, "plain") . + " | " . $cgi->a({-href => esc_url("$my_uri?p=$project;a=blob;hb=HEAD;f=$file_name")}, "head") . "
\n"; } else { print $cgi->a({-href => esc_url("$my_uri?p=$project;a=blob_plain;h=$hash")}, "plain") . "
\n"; } @@ -1430,7 +1431,7 @@ sub git_tree { $cgi->a({-href => esc_url("$my_uri?p=$project;a=tree;h=$t_hash" . $base_key . $file_key)}, $t_name) . "\n" . "" . - $cgi->a({-href => esc("$my_uri?p=$project;a=tree;h=$t_hash" . $base_key . $file_key)}, "tree") . + $cgi->a({-href => esc_url("$my_uri?p=$project;a=tree;h=$t_hash" . $base_key . $file_key)}, "tree") . "\n"; } print "\n";