]> code.citadel.org Git - citadel.git/blobdiff - webcit/sitemap.c
Performed a bunch of markup fixes suggested by validator.w3.org
[citadel.git] / webcit / sitemap.c
index 0bc394b98b0416a3839e190a093b49e8c4389bbd..dd4f570a91dc3509983c873723ddef90dbec206f 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 2010 by the citadel.org team
  *
- * This program is free software; you can redistribute it and/or modify
+ * This program is open source software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 3 of the License, or
  * (at your option) any later version.
@@ -87,7 +87,7 @@ void sitemap(void) {
        }
 
        DeleteHashPos(&it);
-       DeleteHash(&roomlist);
+       /* DeleteHash(&roomlist); This will be freed when the session closes */
 
        wc_printf("</urlset>\r\n");
        wDumpContent(0);
@@ -99,4 +99,5 @@ InitModule_SITEMAP
 (void)
 {
        WebcitAddUrlHandler(HKEY("sitemap"), "", 0, sitemap, ANONYMOUS|COOKIEUNNEEDED);
+       WebcitAddUrlHandler(HKEY("sitemap.xml"), "", 0, sitemap, ANONYMOUS|COOKIEUNNEEDED);
 }