xfce4-terminal/0001-Revert-Fix-handling-email-addresses.patch

29 lines
994 B
Diff
Raw Normal View History

From fa4aaa19a107c404b0dc5d707d9c299472e0884f Mon Sep 17 00:00:00 2001
From: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: Sat, 9 Dec 2017 13:51:35 +0100
Subject: [PATCH] Revert "Fix handling email addresses"
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 d65ebfd7..5494cff5 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:
--
2.15.1