diff options
author | e20100633 <e20100633@inbox.lv> | 2013-01-03 16:32:05 +0100 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2013-01-09 18:52:17 -0500 |
commit | 205166bc3d44ba8cc8b2d4af431e49e3b9c53306 (patch) | |
tree | e5d9601accc032e979e837805694325c129b5f12 /libraries/libmrss/atom-link.diff | |
parent | b66eb6ec33fc348c5ecd0229ecacdd748a440ed8 (diff) |
libraries/libmrss: Added (C RSS library).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/libmrss/atom-link.diff')
-rw-r--r-- | libraries/libmrss/atom-link.diff | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libraries/libmrss/atom-link.diff b/libraries/libmrss/atom-link.diff new file mode 100644 index 0000000000000..fa4e68628b14f --- /dev/null +++ b/libraries/libmrss/atom-link.diff @@ -0,0 +1,24 @@ +Description: Fixes wrong <link> parsed is Atom feeds +Debian BTS: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503225 + +diff -Naur libmrss-0.19.2/src/mrss_parser.c libmrss-0.19.2.atom/src/mrss_parser.c +--- libmrss-0.19.2/src/mrss_parser.c 2008-08-21 15:59:22.000000000 -0600 ++++ libmrss-0.19.2.atom/src/mrss_parser.c 2008-12-07 11:30:43.000000000 -0700 +@@ -367,7 +367,16 @@ + /* link href -> link */ + else if (!item->link && !strcmp (cur->value, "link") + && (c = nxmle_find_attribute (cur, "href", NULL))) +- item->link = c; ++ { ++ char *t; ++ ++ /* alternate link is either rel="alternate" or a link tag ++ * without a rel attribute ++ */ ++ t = nxmle_find_attribute (cur, "rel", NULL); ++ if ((t && !strcmp(t, "alternate")) || !t) ++ item->link = c; ++ } + + /* content -> description */ + else if (!item->description && !strcmp (cur->value, "content")) |