Subject: | use of uninitialized var in substitution. |
In HTTP::Request::Common there's this code:
# HTML/4.01 says that line breaks are represented as "CR LF" pairs (i.e., `%0D%0A')
$content =~ s/(?<!%0D)%0A/%0D%0A/g;
But, it's possible that $content is undefined. This happens, for example, when an empty array
ref is passed as the second parameter to POST (WWW::Mechanize does that when posting a form
with no fields i.e. $mech->submit_form( fields => {} );
warnings are not on by default (should they be?), but this shows up when running "make test"
for example.