Skip Menu |

This queue is for tickets about the libwww-perl CPAN distribution.

Report information
The Basics
Id: 52312
Status: rejected
Priority: 0/
Queue: libwww-perl

People
Owner: Nobody in particular
Requestors: reed [...] reedloden.com
Cc:
AdminCc:

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



Subject: Impossible to send an actual unescaped backslash in HTTP form value
I'm using LWP::UserAgent to send requests to a custom server-side service. LWP::UserAgent uses HTTP::Request internally, which uses HTTP::Request::Common to process requests. HTTP::Request::Common has a line of code that makes sending plain '\n' in requests just not possible: $k =~ s/([\\\"])/\\$1/g; # escape quotes and backslashes I want to be able to send "\n" in a form value, but I can't because of the above line. This means that even if I have a parameter "paths" with "/img/blah.png\n/img/blah2.png", HTTP::Request::Common happily converts the '\n' to '\\n', changing "paths" to be "/img/blah.png\\n/img/blah2.png". I think I should be able to send "\n" in a form value. I can write a small test script if it's needed... My information: * libwww-perl 5.813-1 * perl v5.10.0 * Debian Lenny 5.0.3 * Linux 2.6.26-2-686-bigmem
This seems to be a duplicate of ticket 51492. :(