[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r2372 - gnunet-gtk/src/plugins/fs
From: |
durner |
Subject: |
[GNUnet-SVN] r2372 - gnunet-gtk/src/plugins/fs |
Date: |
Thu, 22 Dec 2005 11:23:08 -0800 (PST) |
Author: durner
Date: 2005-12-22 11:23:05 -0800 (Thu, 22 Dec 2005)
New Revision: 2372
Modified:
gnunet-gtk/src/plugins/fs/download.c
Log:
replace .. in filenames
Modified: gnunet-gtk/src/plugins/fs/download.c
===================================================================
--- gnunet-gtk/src/plugins/fs/download.c 2005-12-22 19:20:09 UTC (rev
2371)
+++ gnunet-gtk/src/plugins/fs/download.c 2005-12-22 19:23:05 UTC (rev
2372)
@@ -420,7 +420,6 @@
GtkTreePath * path;
struct ECRS_URI * u;
char *dirPath;
- char *dotdot;
pos = head;
while (pos != NULL) {
@@ -534,12 +533,6 @@
}
fnURL[len] = 0;
- /* avoid directory traversal */
- while(dotdot = strstr(dstFile, "../")) {
- dotdot[0] = '_';
- dotdot[1] = '_';
- }
-
/* If the file was downloaded before, fnURL is a symlink to
dstFile */
if ((READLINK(fnURL, dummy, 1) == -1) && (errno == EINVAL)) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r2372 - gnunet-gtk/src/plugins/fs,
durner <=