This fixes a minor test failure in t/cgi.t
Tested with perl 5.18.2-2ubuntu1 on Ubuntu 14.04.3 LTS
$to = uri_escape_utf8($to);
$subj = uri_escape_utf8($subj);
- my $cc = uri_escape_utf8(join(',', values %cc));
+ my $cc = uri_escape_utf8(join(',', sort values %cc));
my $href = "mailto:$to?In-Reply-To=$irp&Cc=${cc}&Subject=$subj";
my $idx = $standalone ? " <a\nhref=\"../\">index</a>" : '';
like($res->{head}, qr/Status: 200 OK/, "index returns 200");
my $idx = cgi_run("/test/index.html");
- $idx->{body} =~ s!/index.html(\?r=)!/$1!; # dirty...
+ $idx->{body} =~ s!/index.html(\?r=)!/$1!g; # dirty...
+ $idx->{body} = [ split(/\n/, $idx->{body}) ];
+ $res->{body} = [ split(/\n/, $res->{body}) ];
is_deeply($res, $idx,
'/$LISTNAME/ and /$LISTNAME/index.html are nearly identical');
# more checks in t/feed.t