aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils Durner <durner@gnunet.org>2005-12-22 19:20:09 +0000
committerNils Durner <durner@gnunet.org>2005-12-22 19:20:09 +0000
commit8abaad5d42671dfec96c145fbca43a2c51bf7585 (patch)
tree8acd549242d93101bb9f4cb3aa3636f755a767e2
parent70ffeb65934f035b77c0cfe9bc0451442d81365c (diff)
downloadgnunet-gtk-8abaad5d42671dfec96c145fbca43a2c51bf7585.tar.gz
gnunet-gtk-8abaad5d42671dfec96c145fbca43a2c51bf7585.zip
replace .. in filenames
-rw-r--r--src/plugins/fs/search.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/fs/search.c b/src/plugins/fs/search.c
index b4697500..7c9fbcd2 100644
--- a/src/plugins/fs/search.c
+++ b/src/plugins/fs/search.c
@@ -99,6 +99,13 @@ void addEntryToSearchTree(GtkTreeStore * model,
99 -1); 99 -1);
100 if (name == NULL) 100 if (name == NULL)
101 name = STRDUP(_("no name given")); 101 name = STRDUP(_("no name given"));
102 else {
103 char dotdot;
104
105 while(dotdot = strstr(name, ".."))
106 dotdot[0] = dotdot[1] = '_';
107 }
108
102 if (ECRS_isFileUri(uri)) { 109 if (ECRS_isFileUri(uri)) {
103 size = ECRS_fileSize(uri); 110 size = ECRS_fileSize(uri);
104 } else { 111 } else {