Allow Whitespace in L<> URLs?

[email protected] ("David E. Wheeler") Thu, 8 Jan 2015 10:42:10 -0800
Newsgroups perl.pod-people
Message-ID <[email protected]>
Poders,

RT #93491 (https://rt.cpan.org/Ticket/Display.html?id=93491) reports that URLs are mis-formatted when they contain a newline. Turns out, the regex that detects a URL in L<> explicitly forbids whitespace:

            next unless $ell->[$_] =~ m/^(?:([^|]*)\|)?(\w+:[^:\s]\S*)$/s;

  https://github.com/theory/pod-simple/blob/master/lib/Pod/Simple.pm#L1102

I think that is probably sane, but maybe there are other opinions? Should we allow whitespace in L<> URLs? If so, I think we would just change \S to .

Thoughts?

David
smime.p7s (application/pkcs7-signature, 4 KB) - not displayed