URL parsing bug?

Ferry Huberts mailings at hupie.com
Mon Aug 13 10:20:29 CEST 2012



On 13-08-12 10:03, Jim Meyering wrote:
> Surprisingly, this link (suggested by cgit itself) elicits a 404:
> (that's a complete, valid SHA1 checksum)
>
>      http://git.sv.gnu.org/cgit/grep.git/commit/?id=c96b0f2c8220f171f8fabd62aa1457ebff4d9277
>
> Yet removing a single byte from the end of the SHA string, it works fine:
>
>      http://git.sv.gnu.org/cgit/grep.git/commit/?id=c96b0f2c8220f171f8fabd62aa1457ebff4d927
>
> Alternatively, just append an ampersand:
>
>      http://git.sv.gnu.org/cgit/grep.git/commit/?id=c96b0f2c8220f171f8fabd62aa1457ebff4d9277&
>

that sounds like a nice off-by-one error ;-)

-- 
Ferry Huberts




More information about the CGit mailing list