Skip Menu |
 

This queue is for tickets about the URI CPAN distribution.

Report information
The Basics
Id: 95211
Status: new
Priority: 0/
Queue: URI

People
Owner: Nobody in particular
Requestors: arw [...] cs.fau.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: mailto-URI must encode all newlines as %0D%0A in message body
Date: Wed, 30 Apr 2014 17:48:39 +0200
To: bug-URI [...] rt.cpan.org
From: Alexander Wuerstlein <arw [...] cs.fau.de>
Download (untitled) / with headers
text/plain 473b
Hello, RFC2368 as well as RFC6068 sections 5 specify that "[...] line breaks in the body of a message MUST be encoded with "%0D%0A".". URI.pm currently seemingly encodes such newlines according to their byte representation. In short: | perl -mURI -e '$u = URI->new(); $u->scheme("mailto"); $u->headers({body => "foo\nbar"}); print $u, "\n";' prints: | mailto:?body=foo%0Abar where the correct output would be | mailto:?body=foo%0D%0Abar Ciao, Alexander Wuerstlein.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.