+2003-12-15 Gisle Vanem <giva@bgnett.no>
+
+ * url.c (url_skip_credentials): Fixed return value; 'url' if no
+ credentials.
+
2003-12-14 Hrvoje Niksic <hniksic@xemacs.org>
* url.c (url_skip_credentials): Return a pointer directly.
supported_schemes[scheme].enabled = 0;
}
-/* Skip the username and password, if present here. The function
- should *not* be called with the complete URL, but with the part
- right after the scheme.
+/* Skip the username and password, if present in the URL. The
+ function should *not* be called with the complete URL, but with the
+ portion after the scheme.
- If no username and password are found, return 0. */
+ If no username and password are found, return URL. */
static const char *
url_skip_credentials (const char *url)
'#', or ';'. */
const char *p = (const char *)strpbrk (url, "@/?#;");
if (!p || *p != '@')
- return p;
+ return url;
return p + 1;
}