Index: elc_fileselector.c
===================================================================
--- elc_fileselector.c (Revision 42945)
+++ elc_fileselector.c (Arbeitskopie)
@@ -508,10 +508,18 @@
{
const char *name;
char buf[PATH_MAX];
+ int buf_len;
name = elm_entry_entry_get(wd->entry2);
- //TODO remove <br>
snprintf(buf, sizeof(buf), "%s/%s", wd->path, name);
- if (wd->selection) eina_stringshare_del(wd->selection);
+
+ // remove <br> at end of string
+ buf_len = strlen(buf);
+ if (!strncmp(buf + buf_len - 4, "<br>", 4))
+ {
+ buf[buf_len - 4] = '\0';
+ }
+
+ if (wd->selection) eina_stringshare_del(wd->selection);
wd->selection = eina_stringshare_add(buf);
return wd->selection;