It makes no difference to browsers aside from saving a few
bytes; and this means we won't have to worry about extra
'%0D' showing up in links to solver.
return attach_link($upfx, $ct, $p, $fn) unless defined $s;
return attach_link($upfx, $ct, $p, $fn) unless defined $s;
+ # makes no difference to browsers, and don't screw up filename
+ # link generation in diffs with the extra '%0D'
+ $s =~ s/\r\n/\n/sg;
+
my ($diff, $spfx);
if ($s =~ /^(?:diff|---|\+{3}) /ms) {
$diff = [];
my ($diff, $spfx);
if ($s =~ /^(?:diff|---|\+{3}) /ms) {
$diff = [];