diff options
author | NotZed <NotZed@HelixCode.com> | 2000-02-19 12:12:40 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-02-19 12:12:40 +0800 |
commit | 1c70e0090563eb9acfbcd59dcecbc833154d3747 (patch) | |
tree | 8cd04cf8629ba676bfd1979021250d31acb401f3 /camel/url-util.c | |
parent | f1e7572b78fe6bda6b1e76457a7637de07a9842c (diff) | |
download | gsoc2013-evolution-1c70e0090563eb9acfbcd59dcecbc833154d3747.tar gsoc2013-evolution-1c70e0090563eb9acfbcd59dcecbc833154d3747.tar.gz gsoc2013-evolution-1c70e0090563eb9acfbcd59dcecbc833154d3747.tar.bz2 gsoc2013-evolution-1c70e0090563eb9acfbcd59dcecbc833154d3747.tar.lz gsoc2013-evolution-1c70e0090563eb9acfbcd59dcecbc833154d3747.tar.xz gsoc2013-evolution-1c70e0090563eb9acfbcd59dcecbc833154d3747.tar.zst gsoc2013-evolution-1c70e0090563eb9acfbcd59dcecbc833154d3747.zip |
Added exception to call, and fixed caller.
2000-02-18 NotZed <NotZed@HelixCode.com>
* providers/mbox/camel-mbox-search.h
(camel_mbox_folder_search_by_expression): Added exception to call,
and fixed caller.
* providers/mbox/camel-mbox-search.c
(camel_mbox_folder_search_by_expression): Major changes, to use
the sexp evaluator from filter/filter-sexp.c to implement the
searching.
(func_body_contains): Changed to support multiple strings in 1
command (results or'd together)
* url-util.c (g_url_new): Fixed a typo (colon == 0 isn't right),
and made it so full url's are absolute pathed (Dan, this is how it
has to work!). Also, always include a path part, even if it is an
empty string.
2000-02-16 NotZed <NotZed@HelixCode.com>
* providers/mbox/Makefile.am (libcamelmbox_la_LIBADD): Added
libfilter to link line (temporarily?). Required for
filter-sexp.
svn path=/trunk/; revision=1855
Diffstat (limited to 'camel/url-util.c')
-rw-r--r-- | camel/url-util.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/camel/url-util.c b/camel/url-util.c index da47e041d9..37a433888d 100644 --- a/camel/url-util.c +++ b/camel/url-util.c @@ -124,10 +124,15 @@ Gurl *g_url_new (const gchar* url_string) g_url->port = NULL; } - if (slash && *(slash + 1)) - g_url->path = g_strdup (slash); - else - g_url->path = NULL; + /* setup a fallback, if relative, then empty string, else + it will be from root */ + if (slash == NULL) { + slash = "/"; + } + if (slash && *slash && g_url->protocol == NULL) + slash++; + + g_url->path = g_strdup (slash); return g_url; } |