diff options
author | Eric Wong <e@80x24.org> | 2022-08-21 22:21:00 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-08-22 01:09:02 +0000 |
commit | 74a504208be624c438cbdec955d5eacace29d626 (patch) | |
tree | af6bf165aa080ced6ed7a500ac25dbb8e7fb2fd0 /lib/PublicInbox/WWW.pm | |
parent | 5c2d0dc7c371db883d807b3e572a02891751e3a2 (diff) | |
download | public-inbox-74a504208be624c438cbdec955d5eacace29d626.tar.gz |
`+' already seemed to works for IMAP mailboxes and NNTP newsgroup names and git-config doesn't complain, either. So allow it as the path components of WWW URLs so projects like `libstdc++' can use it. Reported-by: Mark Wielaard <mark@klomp.org> Tested-by: Mark Wielaard <mark@klomp.org> Link: https://public-inbox.org/meta/YwKnFCvganW7ErXU@wildebeest.org/
Diffstat (limited to 'lib/PublicInbox/WWW.pm')
-rw-r--r-- | lib/PublicInbox/WWW.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm index 755d7558..a33709e9 100644 --- a/lib/PublicInbox/WWW.pm +++ b/lib/PublicInbox/WWW.pm @@ -23,7 +23,7 @@ use PublicInbox::WwwStatic qw(r path_info_raw); use PublicInbox::Eml; # TODO: consider a routing tree now that we have more endpoints: -our $INBOX_RE = qr!\A/([\w\-][\w\.\-]*)!; +our $INBOX_RE = qr!\A/([\w\-][\w\.\-\+]*)!; our $MID_RE = qr!([^/]+)!; our $END_RE = qr!(T/|t/|t\.mbox(?:\.gz)?|t\.atom|raw|)!; our $ATTACH_RE = qr!([0-9][0-9\.]*)-($PublicInbox::Hval::FN)!; |