aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/textview.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 637a2e39..b0ddcbc8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-06-08
+
+ * src/textview.c: textview_write_link(): remove spaces from href
+ (fixes execution failure with ShellExecute() on Win32 and URI check).
+
2006-06-04
* src/send_message.c: send_message_smtp(): added missing timeout
diff --git a/src/textview.c b/src/textview.c
index f4a12dcd..02114915 100644
--- a/src/textview.c
+++ b/src/textview.c
@@ -1187,7 +1187,7 @@ static void textview_write_link(TextView *textview, const gchar *str,
gtk_text_buffer_insert(buffer, &iter, buf, bufp - buf);
r_uri = g_new(RemoteURI, 1);
- r_uri->uri = g_strdup(uri);
+ r_uri->uri = g_strstrip(g_strdup(uri));
r_uri->filename = NULL;
r_uri->start = gtk_text_iter_get_offset(&iter);
gtk_text_buffer_insert_with_tags_by_name