gitweb: avoid spurious check_head_link matches
commit88e0d281888b78ce9f6d90c5450da832306cd13e
authorKyle J. McKay <mackyle@gmail.com>
Sun, 14 Jun 2015 03:13:18 +0000 (13 20:13 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 14 Jun 2015 03:13:18 +0000 (13 20:13 -0700)
treef97a70ac64695cf7e7433e9c47b2411caa1876ee
parent7c0ccabad947b62e4084aa7ee0866d37baac1134
gitweb: avoid spurious check_head_link matches

Do not allow symlinks to existing files that are not
relative symlinks starting with 'refs/heads/'.

Do not allow any types other than a symlink or plain file.

Previously a symbolic link to any existing file or
directory would be allowed as well as any kind of object
that existed with the name 'HEAD' (including directories).

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
gitweb/gitweb.perl