[evolution/wip/webkit2] EHTMLEditorView - Magic links are not working anymore
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] EHTMLEditorView - Magic links are not working anymore
- Date: Thu, 25 Feb 2016 16:45:31 +0000 (UTC)
commit 02e2343662804eb7c5b5d05ecd9ea38ebc1f8393
Author: Tomas Popela <tpopela redhat com>
Date: Thu Feb 25 17:22:56 2016 +0100
EHTMLEditorView - Magic links are not working anymore
.../composer/e-html-editor-view-dom-functions.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/web-extensions/composer/e-html-editor-view-dom-functions.c
b/web-extensions/composer/e-html-editor-view-dom-functions.c
index e275772..ef819cc 100644
--- a/web-extensions/composer/e-html-editor-view-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-view-dom-functions.c
@@ -882,10 +882,10 @@ dom_check_magic_links (WebKitDOMDocument *document,
}
node_text = webkit_dom_text_get_whole_text (WEBKIT_DOM_TEXT (node));
- if (!(node_text && *node_text) || !g_utf8_validate (node_text, -1, NULL))
- /* FIXME WK2 - this is supposed to be in a block, otherwise the 'return' is always executed */
+ if (!(node_text && *node_text) || !g_utf8_validate (node_text, -1, NULL)) {
g_free (node_text);
return;
+ }
if (strstr (node_text, "@") && !strstr (node_text, "://")) {
is_email_address = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]