Skip Menu |

This queue is for tickets about the URI CPAN distribution.

Report information
The Basics
Id: 71204
Status: resolved
Priority: 0/
Queue: URI

People
Owner: Nobody in particular
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

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



Subject: URI::URL::strict() equivalent for URI
URI::Find is still using URI::URL. The primary reason is laziness... but also that it relies on URI::URL::strict() to identify if a given URL is a recognized scheme. I prefer to delegate that to URI rather than maintaining my own list. URI.pm doesn't have an equivalent, though I see URI->new honors URI::URL::strict. I can think of a number of hacky ways I could do it, checking if the class of the URI is URI::_foreign springs to mind, but I'd like to do it in a way that won't break later. Perhaps something like... sub has_valid_scheme { my $self = shift; return implementor($self->scheme) ? 1 : 0; }