git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] gitweb: git_summary - show $project in title

From
Jeff King <peff@peff.net>
Date
Nov 12, 2012, 23:25 UTC
Message-ID
<20121112232513.GF10531@sigill.intra.peff.net>
In-Reply-To
<1352611258-11450-1-git-send-email-xypron.glpk@gmx.de>
On Sun, Nov 11, 2012 at 06:20:58AM +0100, Henrich Schuchardt wrote:
Show 22 quoted lines
> Gitweb pages are structured by divs of class title with grey background.
> The shortlog, and the log page show the project name as the first title.
> Page summary only shows an empty grey box above the project details.
> This provides an inconstent user experience.
> 
> This patch adds the missing project title.
> 
> Signed-off-by: Henrich Schuchardt <xypron.glpk@gmx.de>
> ---
>  gitweb/gitweb.perl |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
> index 10ed9e5..3e1c452 100755
> --- a/gitweb/gitweb.perl
> +++ b/gitweb/gitweb.perl
> @@ -6451,7 +6451,7 @@ sub git_summary {
>  	git_header_html();
>  	git_print_page_nav('summary','', $head);
>  
> -	print "<div class=\"title\">&nbsp;</div>\n";
> +	print "<div class=\"title\">$project</div>\n";

I do not have any opinion on whether the intent of the change is good or not, but shouldn't $project be run through esc_html() here?

-Peff
Previous: Henrich SchuchardtNext: Junio C Hamano
Message 2 of 4 in “gitweb: git_summary - show $project in title”
  1. gitweb: git_summary - show $project in titleHenrich Schuchardt, Nov 11, 2012
  2. Jeff KingNov 12, 2012
  3. Junio C HamanoNov 13, 2012
  4. XypronNov 29, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.