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

gitweb.cgi, $my_uri and too many slashes in url

From
Brandon Philips <brandon@ifup.org>
Date
May 20, 2006, 22:58 UTC
Message-ID
<20060520225821.GT30658@osuosl.org>
gitweb.cgi creates bad URLs when too many slashes are put in a URL.

Visiting http://kernel.org///git/ causes all URL prefixes to be http://git/

Explicitly setting $my_uri fixes the problem so it is likely a bug in the CGI library.

my $my_uri =            $cgi->url(-absolute => 1);

I reproduced the bug on a system with the latest version of gitweb and Perl's CGI in Debian Unstable to ensure it wasn't just a kernel.org bug.

Thanks,
Brandon

-- http://ifup.org

Message 1 of 1 in “gitweb.cgi, $my_uri and too many slashes in url”
  1. Brandon PhilipsMay 20, 2006

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.