mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
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:
parent
3d8d213e8f
commit
4066849b72
1 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue