Re: validate URL
| From: | Roman Neuhauser | Date: | Thu, 04 Dec 2003 17:34:39 +0000 |
| Subject: | Re: validate URL | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-24149@lists.php.net to get a copy of this message | ||
# mj@php.net / 2003-12-04 18:32:08 +0100:
> On Thu Dec 04, 2003 at 04:3505PM +0100, Pierre-Alain Joye wrote:
> > On Thu, 4 Dec 2003 09:29:29 -0600
> > Paul M Jones <pmjones@ciaweb.net> wrote:
> >
> > > On Dec 4, 2003, at 9:22 AM, Arnaud Limbourg wrote:
> > >
> > > > Nope.
> > > >
> > > > it means valid values are http, https, ftp
> > > >
> > > > the ? is for 0 or 1 which matches http or https.
> > >
> > > Which means that mailto:, news://, and gopher:// are
> > > not valid?
> >
> > Those are valid URI (afair :). This function should valid widely
> > called urls. But it should take care of ftps? as well ;)
>
> IMO the method shouldn't be too strict about the protocol. Accepting
> everything that only contains characters and nothing else sounds like a
> good idea to me.
not to me: svn+ssh is one of schemes used by Subversion
(subversion.tigris.org).
--
If you cc me or remove the list(s) completely I'll most likely ignore
your message. see http://www.eyrie.org./~eagle/faqs/questions.html