Webmastersite.net
Register Log In

Bug in RSS Feed when usedetails=1

Title Bug in RSS Feed when usedetails=1
Description Ampersands replaced multiple times
Message Text I discovered a bug in rssfeed.php for WSNLinks 3.3.8. If you use the "usedetails=1" parameter, ampersands in the link element get replaced up to 3 times. First, in this line
&
is used instead of &:
if ($usedetails) $linkstuff = $settings->dirurl .'/link.php?action=detail&id='. $thisone->id;
Then, I think the real ampersand might be getting replaced with
&
on this line:
$linkstuff = htmlspecialchars(decodeit($linkstuff));
Finally, another replacement is done on this line near the end:
$thisgroup = str_replace('{THELINK}', str_replace('&', '&', $linkstuff), $thisgroup);
I decided to change
&
to & in the first instance, then removed the replace function in the third instance and things seem to work again. However, I am just listing links in my feed and none of the other types (categories, members, comments, etc.) so I would imagine some work may need to be done for them as well.
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership flyingpylon
Views 539 views. Averaging 0 views per day.
Similar Topics
Submission Date Mar 09, 2006 - 10:45 AM