[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] svn_path_canonicalize updated

From: Daniel Stenberg <daniel_at_haxx.se>
Date: 2001-09-20 14:18:28 CEST

On Thu, 20 Sep 2001, Garrett Rooney wrote:

> > > + if (style == svn_path_url_style || style == svn_path_repos_style) {
> > > + str = strstr (path->data, "//");
> >
> > A relative URL with "//" present will throw this off.
>
> how should i tell the difference between an absolute url and a relative
> url? i suppose i could do a direct compare against http:// https:// and
> file://, but that seems ugly...

You could probably check if the string begins with "scheme://", where scheme
may consist of ( alpha | digit | "+" | "-" | "." ) (according to RFC2396
section 3.1)

At least that's more generic.

-- 
      Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:42 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.