]> Sergey Matveev's repositories - public-inbox.git/commit
config: inbox name checking matches git.git more closely
authorEric Wong <e@80x24.org>
Wed, 9 Jan 2019 11:43:26 +0000 (11:43 +0000)
committerEric Wong <e@80x24.org>
Tue, 15 Jan 2019 21:23:45 +0000 (21:23 +0000)
commit1f4ce0de1cd70b905dc2cd40628785b01060738c
tree964fbdf38b8cb4a88fedc10d7432051cd0540509
parentadf443322d8747bbc5b0b1d6e7bf819f70244456
config: inbox name checking matches git.git more closely

Actually, it turns out git.git/remote.c::valid_remote_nick
rules alone are insufficient.  More checking is performed as
part of the refname in the git.git/refs.c::check_refname_component

I also considered rejecting URL-unfriendly inbox names entirely,
but realized some users may intentionally configure names not
handled by our WWW endpoint for archives they don't want
accessible over HTTP.
lib/PublicInbox/Config.pm
lib/PublicInbox/WWW.pm
t/config.t