]> Lady’s Gitweb - Gitweb/commit
gitweb: Return 1 on validation success instead of passed input
authorKrzesimir Nowak <redacted>
Wed, 11 Dec 2013 11:54:42 +0000 (12:54 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:32 +0000 (00:51 -0400)
commit03e6c983c45388794c4153c12a024b68329ebb027b9cbef6a62711f363026330
tree91045d557d2fd0299c051eb8b9b73ff5b540434eef707c901cebd1c069bac618
parentfd0f6cb5638966a4c5b3381a9bf08cc8fe7557ba87b420284b4cfc064b7fe5c7
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.057189 seconds and 4 git commands to generate.