* Restored the parsing of <link> tags in RSS feeds.
authorArt Cancro <ajc@citadel.org>
Thu, 19 Nov 2009 21:38:21 +0000 (21:38 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 19 Nov 2009 21:38:21 +0000 (21:38 +0000)
citadel/modules/rssclient/serv_rssclient.c

index 9f0298d44b57480d6f37db229d98cf6d98a1f074..b6517242b23eab2aa93e9d598c0afbad2d24a62f 100644 (file)
@@ -539,6 +539,11 @@ void rss_xml_end(void *data, const char *supplied_el) {
                ri->guid = strdup(ri->chardata);
        }
 
+       else if ( (rssc->Cfg->ItemType == RSS_RSS) && (!strcasecmp(el, "link")) && (ri->chardata != NULL) ) {
+               if (ri->link != NULL) free(ri->link);
+               striplt(ri->chardata);
+               ri->link = strdup(ri->chardata);
+       }
 
        else if ( (!strcasecmp(el, "title")) && (ri->chardata != NULL) ) {
                if (ri->title != NULL) free(ri->title);