[Xfce4-commits] [apps/xfce4-terminal] 01/01: Fix handling email addresses

noreply at xfce.org noreply at xfce.org
Fri Jun 9 20:42:20 CEST 2017


This is an automated email from the git hooks/post-receive script.

f   2   4   0   4       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-terminal.

commit 5175d5ef5e6c9e92f4d296948528ac4bef35fe9d
Author: Igor <f2404 at yandex.ru>
Date:   Fri Jun 9 14:41:54 2017 -0400

    Fix handling email addresses
---
 terminal/terminal-widget.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/terminal/terminal-widget.c b/terminal/terminal-widget.c
index dab073a..7a17287 100644
--- a/terminal/terminal-widget.c
+++ b/terminal/terminal-widget.c
@@ -669,8 +669,8 @@ terminal_widget_open_uri (TerminalWidget *widget,
             break;
 
           case PATTERN_TYPE_EMAIL:
-            uri = strncmp (wlink, MAILTO, strlen (MAILTO)) == 0
-                ? g_strdup (wlink) : g_strconcat (MAILTO, wlink, NULL);
+            uri = g_str_has_prefix (wlink, MAILTO "//")
+                ? g_strdup (wlink) : g_strconcat (MAILTO "//", wlink, NULL);
             break;
 
           default:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list