]> Sergey Matveev's repositories - public-inbox.git/commit
www: only emit ASCII chars in attachment filenames
authorEric Wong <e@80x24.org>
Tue, 4 Jun 2019 02:04:28 +0000 (02:04 +0000)
committerEric Wong <e@80x24.org>
Tue, 4 Jun 2019 10:06:18 +0000 (10:06 +0000)
commitc5621af43e9c7cb1ff0565aa61a1d8fced55a23b
tree33bfcd44d136a3bd15869ce16229581574a8e6d9
parentf8c8ca04d47620d390092000ca09aab071442fac
www: only emit ASCII chars in attachment filenames

We don't want to emit funky URLs which can be lost in
translation or cause problems with non-Unicode-aware
clients.

Then, don't accept non-ASCII filenames in URLs, since
a manually-generated URL/filename in attachment downloads
could be used for Unicode homographs to confuse folks who
down the attachment.
lib/PublicInbox/Hval.pm
lib/PublicInbox/View.pm
lib/PublicInbox/WWW.pm