revised^2: git-daemon extra paranoia, and path DWIM
authorH. Peter Anvin <hpa@zytor.com>
Wed, 19 Oct 2005 07:01:01 +0000 (00:01 -0700)
committerJunio C Hamano <junkio@cox.net>
Wed, 19 Oct 2005 07:01:01 +0000 (00:01 -0700)
This patch adds some extra paranoia to the git-daemon filename test. In
particular, it now rejects pathnames containing //; it also adds a
redundant test for pathname absoluteness (belts and suspenders.)

A single / at the end of the path is still permitted, however, and the
.git and /.git append DWIM stuff is now handled in an integrated manner,
which means the resulting path will always be subjected to pathname checks.

[jc: backported to 0.99.8 maintenance branch]

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
No differences found