From cdc780b798d309c5d7c8e0402c88dc760a1bfdb6 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Tue, 20 Oct 2009 11:04:00 +0000 Subject: fix bug #53045 the simple way. ;) git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10225 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/feed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/feed.php') diff --git a/phpBB/feed.php b/phpBB/feed.php index 88539acbf1..263f6f9272 100644 --- a/phpBB/feed.php +++ b/phpBB/feed.php @@ -430,7 +430,7 @@ class phpbb_feed /** * Default cache time of entries in seconds */ - var $cache_time = 300; + var $cache_time = 0; /** * Separator for title elements to separate items (for example forum / topic) -- cgit v1.2.1 From 2258d856235b29222ee82c17d9f6490c8dc7284c Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Thu, 29 Oct 2009 14:00:43 +0000 Subject: Implement suggestion in ticket #52155 - Better way to generate SID-free links in feed.php git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10244 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/feed.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'phpBB/feed.php') diff --git a/phpBB/feed.php b/phpBB/feed.php index 263f6f9272..b9d6e1959a 100644 --- a/phpBB/feed.php +++ b/phpBB/feed.php @@ -212,17 +212,7 @@ function feed_append_sid($url, $params) { global $board_url; - $link = append_sid($board_url . $url, $params); - - // Remove added sid - not as easy as it sounds. ;) - $link = (strpos($link, 'sid=') !== false) ? trim(preg_replace('/(&|&|\?)sid=[a-z0-9]+(&|&)?/', '\1', $link), '?& ') : $link; - - // Now the only thing remaining could be an empty & - $link = (substr($link, -5) === '&') ? substr($link, 0, -5) : $link; - // And &#xxx - $link = str_replace('&#', '#', $link); - - return $link; + return append_sid($board_url . $url, $params, true, ''); } /** -- cgit v1.2.1