i hope this resolves the duplicate issues in feed readers

git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9868 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2009-07-27 10:46:56 +00:00
parent 3d8d213e8f
commit 4066849b72

View file

@ -218,10 +218,9 @@ function feed_append_sid($url, $params)
$link = (strpos($link, 'sid=') !== false) ? trim(preg_replace('/(&|&|\?)sid=[a-z0-9]+(&|&)?/', '\1', $link), '?& ') : $link;
// Now the only thing remaining could be an empty &
if (substr($link, -5) === '&')
{
$link = substr($link, 0, -5);
}
$link = (substr($link, -5) === '&') ? substr($link, 0, -5) : $link;
// And &#xxx
$link = str_replace('&#', '#', $link);
return $link;
}