[mirrorbrain-commits] r7993 - /trunk/mod_mirrorbrain/mod_mirrorbrain.c

From: <poeml_at_mirrorbrain.org>
Date: Fri, 12 Mar 2010 20:52:08 -0000
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
@@ -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
+                          "&amp;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 */
+                          "&amp;xt=urn:sha1:%s"
+                          "&amp;xt=urn:bith:%s" /* bittorrent information hash */
+                          "&amp;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 (&amp;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.org
Received on Fri Mar 12 2010 - 20:52:11 GMT

This archive was generated by hypermail 2.2.0 : Fri Mar 12 2010 - 21:17:08 GMT