diff --git a/gitweb.cgi b/gitweb.cgi index 615af99e2c..c477bf1bab 100755 --- a/gitweb.cgi +++ b/gitweb.cgi @@ -78,7 +78,8 @@ if (defined $project) { undef $project; die_error(undef, "No such project."); } - $rss_link = ""; + $rss_link = ""; $ENV{'GIT_DIR'} = "$projectroot/$project"; } else { git_project_list(); @@ -206,6 +207,13 @@ if (!defined $action || $action eq "summary") { exit; } +sub esc { + my $str = shift; + $str =~ s/ /\+/g; + $str =~ s/\+/%2b/g; + return $str; +} + sub git_header_html { my $status = shift || "200 OK"; my $expires = shift; @@ -286,11 +294,11 @@ a.rss_logo:hover { background-color:#ee5500; } EOF print "