]> Sergey Matveev's repositories - public-inbox.git/commit
www: require ASCII filenames in git blob downloads
authorEric Wong <e@80x24.org>
Tue, 4 Jun 2019 09:02:01 +0000 (09:02 +0000)
committerEric Wong <e@80x24.org>
Tue, 4 Jun 2019 10:06:18 +0000 (10:06 +0000)
commitbb64c28a4a2688171b7625e99ed72dd51a5ee074
tree284f707597ede40d01d9cc3df8b81735f0927825
parentc5621af43e9c7cb1ff0565aa61a1d8fced55a23b
www: require ASCII filenames in git blob downloads

Our Hval::to_filename sub has always been strict about emitting
ASCII-only characters for ViewVCS "raw" links.

However, somebody could manually generate a filename with
non-ASCII words for somebody else to download (we have no
cheap and fast way of mapping filenames back to blobs for
validation).
lib/PublicInbox/WWW.pm