Author: poeml Date: Fri Mar 12 21:52:07 2010 New Revision: 7993 URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=7993&view=rev Log: mod_mirrorbrain: - Ampersands in Magnet links are now escaped, as they should be. Modified: trunk/mod_mirrorbrain/mod_mirrorbrain.c Modified: trunk/mod_mirrorbrain/mod_mirrorbrain.c URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mod_mirrorbrain/mod_mirrorbrain.c?rev=7993&r1=7992&r2=7993&view=diff ============================================================================== --- trunk/mod_mirrorbrain/mod_mirrorbrain.c (original) +++ trunk/mod_mirrorbrain/mod_mirrorbrain.c Fri Mar 12 21:52:07 2010 _at_@ -1809,15 +1809,15 @@ case MIRRORLIST: magnet = apr_psprintf(r->pool, "magnet:" "?xl=%s" /* size */ - "&dn=%s" /* FIXME: the basename should be www-formencoded for + "&dn=%s" /* FIXME: the basename should be www-formencoded for spaces or funny characters */ - "&xt=urn:sha1:%s" - "&xt=urn:bith:%s" /* bittorrent information hash */ - "&xt=urn:md5:%s", /* Gnutella */ + "&xt=urn:sha1:%s" + "&xt=urn:bith:%s" /* bittorrent information hash */ + "&xt=urn:md5:%s", /* Gnutella */ apr_off_t_toa(r->pool, r->finfo.size), basename, hashbag->sha1, hashbag->sha1, hashbag->md5); - /* FIXME: including a tracker URL might be cool (&tr=<tracker-url>) + /* FIXME: including a tracker URL might be cool (&tr=<tracker-url>) * see http://mirrorbrain.org/issues/issue38 */ /* the URL to the file (for HTTP redirection) can also be included * http://en.wikipedia.org/wiki/Magnet_URI_scheme#Normal_.28as.29 */ _______________________________________________ mirrorbrain-commits mailing list Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/ Note: To remove yourself from this list, send a mail with the content unsubscribe to the address mirrorbrain-commits-request_at_mirrorbrain.orgReceived on Fri Mar 12 2010 - 20:52:11 GMT
This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT