From e87782029e1144d413f7c4897873ba9fea78b7fc Mon Sep 17 00:00:00 2001 From: WooHyun Jung Date: Mon, 6 May 2013 20:56:20 +0900 Subject: [PATCH] [elm_entry] Filter_accept callback should consider meaningless tag and should not remove it. Thanks YoungBok Shin. --- src/lib/elm_entry.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c index 3d3342f..807abba 100644 --- a/src/lib/elm_entry.c +++ b/src/lib/elm_entry.c @@ -4964,13 +4964,20 @@ elm_entry_filter_accept_set(void *data, if (read_char == ';') { char *tag; + int utf8; tag = malloc(read_idx - last_read_idx + 1); if (tag) { strncpy(tag, (*text) + last_read_idx, read_idx - last_read_idx); - tag[read_idx - last_read_idx] = 0; - read_char = *(elm_entry_markup_to_utf8(tag)); + tag[read_idx - last_read_idx] = 0; + utf8 = *(elm_entry_markup_to_utf8(tag)); free(tag); + if (!utf8) + { + in_set = EINA_FALSE; + goto inserting; + } + read_char = utf8; } } } -- 2.7.4