threads / discuss / 4224

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

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

## tl;dr

One message between May 20, 2006 and May 20, 2006.

replies: 0people: 1as markdown or json

Brandon Philips· May 20, 2006, 22:58 UTC · lore
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

← back to recent threads