You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by pq...@apache.org on 2008/12/27 18:12:45 UTC

svn commit: r729643 - /httpd/mod_mbox/trunk/module-2.0/mod_mbox_sitemap.c

Author: pquerna
Date: Sat Dec 27 09:12:45 2008
New Revision: 729643

URL: http://svn.apache.org/viewvc?rev=729643&view=rev
Log:
Wrap all URLs to messages in a CDATA, so we don't need to go down the path of proper entity encoding (I hate xml).

Modified:
    httpd/mod_mbox/trunk/module-2.0/mod_mbox_sitemap.c

Modified: httpd/mod_mbox/trunk/module-2.0/mod_mbox_sitemap.c
URL: http://svn.apache.org/viewvc/httpd/mod_mbox/trunk/module-2.0/mod_mbox_sitemap.c?rev=729643&r1=729642&r2=729643&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/module-2.0/mod_mbox_sitemap.c (original)
+++ httpd/mod_mbox/trunk/module-2.0/mod_mbox_sitemap.c Sat Dec 27 09:12:45 2008
@@ -74,7 +74,7 @@
 
         ap_rputs("<url>\n", r);
 
-        ap_rprintf(r, "<loc>%s%s/%s</loc>\n",
+        ap_rprintf(r, "<loc><![CDATA[%s%s/%s]]></loc>\n",
                    ap_construct_url(tpool, r->uri, r),
                    mboxfile, URI_ESCAPE_OR_BLANK(tpool, m->msgID));