diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2002-12-10 05:26:53 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2002-12-10 05:26:53 +0800 |
commit | 3bb567307b06a04c5df4057615c27a3a74a4b732 (patch) | |
tree | 7f69646d534e9daafbf59b8cf96d39e320640893 /calendar/gui/misc.c | |
parent | 4f476ec48a182f891ea5a6db2908429b9110badb (diff) | |
download | gsoc2013-evolution-3bb567307b06a04c5df4057615c27a3a74a4b732.tar.gz gsoc2013-evolution-3bb567307b06a04c5df4057615c27a3a74a4b732.tar.zst gsoc2013-evolution-3bb567307b06a04c5df4057615c27a3a74a4b732.zip |
Fixes #35003
2002-12-06 Rodrigo Moya <rodrigo@ximian.com>
Fixes #35003
* gui/misc.[ch] (get_uri_without_password): new function for
removing the password from the CalClient's uris.
* gui/gnome-cal.c (client_cal_opened_cb): use the URI returned by
get_uri_without_password for messages.
(backend_error_cb): likewise.
(backend_died_cb): likewise.
(gnome_calendar_open): likewise.
(open_error, method_error, permission_error): likewise.
* gui/e-tasks.c (e_tasks_open): hide the password from the URI
being displayed in messages.
(backend_error_cb): likewise.
svn path=/trunk/; revision=19070
Diffstat (limited to 'calendar/gui/misc.c')
-rw-r--r-- | calendar/gui/misc.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/calendar/gui/misc.c b/calendar/gui/misc.c index 15dcf93e09..e286442a89 100644 --- a/calendar/gui/misc.c +++ b/calendar/gui/misc.c @@ -24,6 +24,7 @@ #endif #include <ctype.h> +#include <e-util/e-url.h> #include "misc.h" @@ -58,3 +59,22 @@ string_is_empty (const char *value) return empty; } + +/** + * get_uri_without_password + */ +char * +get_uri_without_password (const char *full_uri) +{ + EUri *uri; + char *uristr; + + uri = e_uri_new (full_uri); + if (!uri) + return NULL; + + uristr = e_uri_to_string (uri, FALSE); + e_uri_free (uri); + + return uristr; + } |