From 182c699c3909ff7e052f05259bac368b72c464f3 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Sun, 25 Mar 2001 22:55:27 +0000 Subject: New URL parser with full RFC1808 relative URL support. Yum. * camel-url.c (camel_url_new_with_base): New URL parser with full RFC1808 relative URL support. Yum. (camel_url_new): Wrapper around camel_url_new_with_base now. Removed the CamelException since no one ever used it... * tests/Makefile.am: add misc subdir * tests/misc/url.c: relative URL test cases from RFC 1808 * camel-session.c (camel_session_get_service): Update camel_url_new call. svn path=/trunk/; revision=8933 --- camel/camel-session.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'camel/camel-session.c') diff --git a/camel/camel-session.c b/camel/camel-session.c index 6ec2c5f1cf..24ca3b964d 100644 --- a/camel/camel-session.c +++ b/camel/camel-session.c @@ -291,9 +291,13 @@ camel_session_get_service (CamelSession *session, const char *url_string, CamelProvider *provider; CamelService *service; - url = camel_url_new (url_string, ex); - if (!url) + url = camel_url_new (url_string); + if (!url) { + camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_URL_INVALID, + _("Could not parse URL `%s'"), + url_string); return NULL; + } /* We need to look up the provider so we can then lookup the service in the provider's cache */ -- cgit v1.2.3