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

From: Brandon Philips <brandon@ifup.org>
Date: 2006-05-21 08:58:21
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
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Sun May 21 08:58:58 2006

This archive was generated by hypermail 2.1.8 : 2006-05-21 08:59:16 EST