[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r2702 - gnunet-gtk/src/plugins/fs
From: |
grothoff |
Subject: |
[GNUnet-SVN] r2702 - gnunet-gtk/src/plugins/fs |
Date: |
Sun, 30 Apr 2006 20:57:37 -0700 (PDT) |
Author: grothoff
Date: 2006-04-30 20:57:32 -0700 (Sun, 30 Apr 2006)
New Revision: 2702
Modified:
gnunet-gtk/src/plugins/fs/namespace.c
Log:
fixing Mantis 1063
Modified: gnunet-gtk/src/plugins/fs/namespace.c
===================================================================
--- gnunet-gtk/src/plugins/fs/namespace.c 2006-05-01 03:53:39 UTC (rev
2701)
+++ gnunet-gtk/src/plugins/fs/namespace.c 2006-05-01 03:57:32 UTC (rev
2702)
@@ -275,13 +275,14 @@
EXTRACTOR_PRODUCER,
EXTRACTOR_UNKNOWN,
-1);
- if (filename == NULL)
+ if (filename == NULL) {
filename = STRDUP(_("no name given"));
- else {
- char *dotdot;
+ } else {
+ char * dotdot;
- while ( NULL != (dotdot = strstr(filename, "..")))
+ while (NULL != (dotdot = strstr(filename, "..")))
dotdot[0] = dotdot[1] = '_';
+ filename = validate_utf8(filename);
}
if (ECRS_isFileUri(fi->uri))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r2702 - gnunet-gtk/src/plugins/fs,
grothoff <=