about summary refs log tree commit homepage
path: root/scripts
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-08-14 10:21:09 +0000
committerEric Wong <e@80x24.org>2016-08-14 10:51:02 +0000
commit9d1e5fadd7d18f4c96ab0509d673040e34225a04 (patch)
treedd89df05390a2ca2e06448ec0acdbf741729d36e /scripts
parent1d0ce406b75fc174bee51e77efe5f10c61fb6098 (diff)
downloadpublic-inbox-9d1e5fadd7d18f4c96ab0509d673040e34225a04.tar.gz
Based on reading RFC 3986, it seems '@', ':', '!', '$', '&',
"'", '; '(', ')', '*', '+', ',', ';', '=' are all allowed
in path-absolute where we have the Message-ID.

In any case, it seems '@' is fairly common in path components
nowadays and too common in Message-IDs.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ssoma-replay3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/ssoma-replay b/scripts/ssoma-replay
index 91c121dd..3c3fdf48 100755
--- a/scripts/ssoma-replay
+++ b/scripts/ssoma-replay
@@ -53,7 +53,8 @@ if (defined $list_id) {
                 if ($mid =~ /\A<(.+)>\z/) {
                         $mid = $1;
                 }
-                $mid = uri_escape_utf8($mid);
+                $mid = uri_escape_utf8($mid,
+                                '^A-Za-z0-9\-\._~!\$\&\';\(\)\*\+,;=:@');
                 $header_obj->header_set('List-Archive', "<$archive_url>");
 
                 foreach my $h (qw(Help Unsubscribe Subscribe Owner)) {