diff options
author | Not Zed <NotZed@Ximian.com> | 2004-06-11 16:28:41 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-06-11 16:28:41 +0800 |
commit | ad811c27003b8e8ea0dbdba3cef61823a2497f26 (patch) | |
tree | 9ef4ee614a7662616d8da173edc98d5118968322 /camel/camel-url.c | |
parent | 0bbd48e965cd8af7b15204f3d800aaf1440fe101 (diff) | |
download | gsoc2013-evolution-ad811c27003b8e8ea0dbdba3cef61823a2497f26.tar gsoc2013-evolution-ad811c27003b8e8ea0dbdba3cef61823a2497f26.tar.gz gsoc2013-evolution-ad811c27003b8e8ea0dbdba3cef61823a2497f26.tar.bz2 gsoc2013-evolution-ad811c27003b8e8ea0dbdba3cef61823a2497f26.tar.lz gsoc2013-evolution-ad811c27003b8e8ea0dbdba3cef61823a2497f26.tar.xz gsoc2013-evolution-ad811c27003b8e8ea0dbdba3cef61823a2497f26.tar.zst gsoc2013-evolution-ad811c27003b8e8ea0dbdba3cef61823a2497f26.zip |
if we scan from "" or top == NULL, then we really want to scan from "."
2004-06-11 Not Zed <NotZed@Ximian.com>
* providers/local/camel-maildir-store.c (get_folder_info): if we
scan from "" or top == NULL, then we really want to scan from "."
instead.
* camel-url.c (camel_url_new_with_base): don't check the for a
character after the # before extracting the fragment. An empty
fragment is still allowed and # should never be added to the path.
See Rfc1808 2.4.1.
svn path=/trunk/; revision=26304
Diffstat (limited to 'camel/camel-url.c')
-rw-r--r-- | camel/camel-url.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/camel/camel-url.c b/camel/camel-url.c index cdbccfe14e..7033913ea0 100644 --- a/camel/camel-url.c +++ b/camel/camel-url.c @@ -65,11 +65,13 @@ camel_url_new_with_base (CamelURL *base, const char *url_string) * FUNCTION, RUN tests/misc/url AFTERWARDS. */ - /* Find fragment. */ + /* Find fragment. RFC 1808 2.4.1 */ end = hash = strchr (url_string, '#'); - if (hash && hash[1]) { - url->fragment = g_strdup (hash + 1); - camel_url_decode (url->fragment); + if (hash) { + if (hash[1]) { + url->fragment = g_strdup (hash + 1); + camel_url_decode (url->fragment); + } } else end = url_string + strlen (url_string); |