From 9d1e5fadd7d18f4c96ab0509d673040e34225a04 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 14 Aug 2016 10:21:09 +0000 Subject: www: do not unecessarily escape some chars in paths 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. --- scripts/ssoma-replay | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') 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)) { -- cgit v1.2.3-24-ge0c7