aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-display.c
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2001-09-27 03:44:47 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-09-27 03:44:47 +0800
commit1bb2bd5d721338af2e344b764975c87b2a63540a (patch)
tree9786220dc7ebba6ab5fb19b3526e20ac2cbb7d98 /mail/mail-display.c
parent010204b7bf75592bd178c735206331f4f6c23af5 (diff)
downloadgsoc2013-evolution-1bb2bd5d721338af2e344b764975c87b2a63540a.tar.gz
gsoc2013-evolution-1bb2bd5d721338af2e344b764975c87b2a63540a.tar.zst
gsoc2013-evolution-1bb2bd5d721338af2e344b764975c87b2a63540a.zip
Decode our URL before extracting the address to pop up contact info.
2001-09-26 Jon Trowbridge <trow@ximian.com> * mail-display.c (html_button_press_event): Decode our URL before extracting the address to pop up contact info. * mail-format.c (write_address): When writing out a mailto: link, make sure we construct a valid URL w/ correct encoding. Make sure our address is properly quoted, if necessary. svn path=/trunk/; revision=13160
Diffstat (limited to 'mail/mail-display.c')
-rw-r--r--mail/mail-display.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/mail-display.c b/mail/mail-display.c
index f8e486fa8d..022654323a 100644
--- a/mail/mail-display.c
+++ b/mail/mail-display.c
@@ -1734,13 +1734,16 @@ html_button_press_event (GtkWidget *widget, GdkEventButton *event, MailDisplay *
if (url && !g_strncasecmp (url, "mailto:", 7)) {
PopupInfo *pop;
+ gchar *url_decoded = g_strdup (url);
+ camel_url_decode (url_decoded);
popup_thing = bonobo_widget_new_control ("OAFIID:GNOME_Evolution_Addressbook_AddressPopup",
CORBA_OBJECT_NIL);
bonobo_widget_set_property (BONOBO_WIDGET (popup_thing),
- "email", url+7,
+ "email", url_decoded+7,
NULL);
+ g_free (url_decoded);
pop = make_popup_window (popup_thing);