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

1 messages from 2006-05-20 to 2006-05-20. Participants: Brandon Philips.
Thread: https://gitlist.dev/t/4224

## Brandon Philips, 2006-05-20 22:58

Subject: gitweb.cgi, $my_uri and too many slashes in url
Message-ID: <20060520225821.GT30658@osuosl.org>
URL: https://gitlist.dev/e/20060520225821.GT30658%40osuosl.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

```
