[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r18584 - gnunet-gtk/src/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r18584 - gnunet-gtk/src/fs |
Date: |
Tue, 13 Dec 2011 18:50:02 +0100 |
Author: grothoff
Date: 2011-12-13 18:50:02 +0100 (Tue, 13 Dec 2011)
New Revision: 18584
Modified:
gnunet-gtk/src/fs/gnunet-fs-gtk-event_handler.c
Log:
do not allow downloading of sks/ksk URIs, block on attempt (#2003)
Modified: gnunet-gtk/src/fs/gnunet-fs-gtk-event_handler.c
===================================================================
--- gnunet-gtk/src/fs/gnunet-fs-gtk-event_handler.c 2011-12-13 17:44:16 UTC
(rev 18583)
+++ gnunet-gtk/src/fs/gnunet-fs-gtk-event_handler.c 2011-12-13 17:50:02 UTC
(rev 18584)
@@ -611,6 +611,13 @@
return;
}
gtk_tree_model_get (tm, &iter, 0, &meta, 1, &uri, 9, &sr, 10, &mime, -1);
+ if (! (GNUNET_FS_uri_test_chk (uri) ||
+ GNUNET_FS_uri_test_loc (uri)) )
+ {
+ /* can only download chk/loc URIs, ignore */
+ g_free (mime);
+ return;
+ }
dlc = GNUNET_malloc (sizeof (struct DownloadContext));
dlc->uri = GNUNET_FS_uri_dup (uri);
dlc->mime = (NULL != mime) ? GNUNET_strdup (mime) : NULL;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r18584 - gnunet-gtk/src/fs,
gnunet <=