diff options
author | Sarfraaz Ahmed <asarfraaz@novell.com> | 2005-09-30 19:20:50 +0800 |
---|---|---|
committer | Ahmed Sarfraaz <sarfraaz@src.gnome.org> | 2005-09-30 19:20:50 +0800 |
commit | 410ace5fad84c48973f381ad5ccd9d2e874c4ec2 (patch) | |
tree | 1e239ad9b5ed813c1a8bbc901b70170b5ab63bbb /addressbook/gui | |
parent | 9c2faea869197cbb5f223d923b9c0fadd814c361 (diff) | |
download | gsoc2013-evolution-410ace5fad84c48973f381ad5ccd9d2e874c4ec2.tar.gz gsoc2013-evolution-410ace5fad84c48973f381ad5ccd9d2e874c4ec2.tar.zst gsoc2013-evolution-410ace5fad84c48973f381ad5ccd9d2e874c4ec2.zip |
This now takes care to escape any auth mechanism in the uri.
2005-09-30 Sarfraaz Ahmed <asarfraaz@novell.com>
* gui/component/addressbook.c (remove_parameters_from_uri) : This now
takes care to escape any auth mechanism in the uri.
svn path=/trunk/; revision=30438
Diffstat (limited to 'addressbook/gui')
-rw-r--r-- | addressbook/gui/component/addressbook.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index 989efb216a..289a783da4 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -27,6 +27,7 @@ #include <gtk/gtkmessagedialog.h> #include <libgnome/gnome-i18n.h> #include <libebook/e-book.h> +#include <libedataserver/e-url.h> #include <libedataserverui/e-passwords.h> #include "e-util/e-error.h" @@ -59,14 +60,13 @@ in uri*/ static gchar* remove_parameters_from_uri (const gchar *uri) { - gchar **components; - gchar *new_uri = NULL; - - components = g_strsplit (uri, ";", 2); - if (components[0]) - new_uri = g_strdup (components[0]); - g_strfreev (components); - return new_uri; + char *euri_str; + EUri *euri; + + euri = e_uri_new (uri); + euri_str = e_uri_to_string (euri, FALSE); + e_uri_free (euri); + return euri_str; } static void |