gitweb: Return 1 on validation success instead of passed input
commit23faf546ae59d945848389070507bc418de733b6
authorKrzesimir Nowak <krzesimir@endocode.com>
Wed, 11 Dec 2013 11:54:42 +0000 (11 12:54 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Dec 2013 20:37:36 +0000 (12 12:37 -0800)
tree2589ade7dce77ecd83032185898b4d32966309d1
parentc0bc2265ef74331c0314be4a3f148e784800c3de
gitweb: Return 1 on validation success instead of passed input

Users of validate_* passing "0" might get failures on correct name
because of coercion of "0" to false in code like:
die_error(500, "invalid ref") unless (check_ref_format ("0"));

Also, the validate_foo subs are renamed to is_valid_foo.

Signed-off-by: Krzesimir Nowak <krzesimir@endocode.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl