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

noreply at xfce.org noreply at xfce.org
Mon Dec 11 17:09:29 CET 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 b92bc2299c01ba3364ad8518c8eb9c8d87a2dde9
Author: Igor <f2404 at yandex.ru>
Date:   Mon Dec 11 11:08:15 2017 -0500

    Revert "Fix handling email addresses"
    
    'mailto:' does not need '//'.
    
    This reverts commit 5175d5ef5e6c9e92f4d296948528ac4bef35fe9d.
---
 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 d65ebfd..5494cff 100644
--- a/terminal/terminal-widget.c
+++ b/terminal/terminal-widget.c
@@ -678,8 +678,8 @@ terminal_widget_open_uri (TerminalWidget *widget,
             break;
 
           case PATTERN_TYPE_EMAIL:
-            uri = g_str_has_prefix (wlink, MAILTO "//")
-                ? g_strdup (wlink) : g_strconcat (MAILTO "//", wlink, NULL);
+            uri = strncmp (wlink, MAILTO, strlen (MAILTO)) == 0
+                ? 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