aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2016-12-25 18:18:16 +0100
committerBoris Faure <billiob@gmail.com>2016-12-25 18:18:16 +0100
commitafe4b928bcc34fe43e0b51eb80b2cc1faf6dd3e1 (patch)
tree9a2b2e10d97a7b4f1ba1af9c3ffa95813d8ddfeb
parenttermpty: verify that $SHELL is valid before using it. CID1366816 (diff)
downloadterminology-afe4b928bcc34fe43e0b51eb80b2cc1faf6dd3e1.tar.gz
improve link detection when stored in xml
-rw-r--r--src/bin/termiolink.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/bin/termiolink.c b/src/bin/termiolink.c
index c1f88f5..4394d85 100644
--- a/src/bin/termiolink.c
+++ b/src/bin/termiolink.c
@@ -361,6 +361,20 @@ termio_link_find(Evas_Object *obj, int cx, int cy,
goforward = EINA_FALSE;
break;
}
+ switch (txt[0])
+ {
+ case '"':
+ case '\'':
+ case '`':
+ case '<':
+ case '>':
+ case '[':
+ case ']':
+ case '{':
+ case '}':
+ case '|':
+ goto out;
+ }
res = ty_sb_add(&sb, txt, txtlen);
if (res < 0) goto end;
@@ -381,6 +395,7 @@ termio_link_find(Evas_Object *obj, int cx, int cy,
y2 = new_y2;
}
+out:
if (sb.len)
{
Eina_Bool is_file = _is_file(sb.buf);