Version 0.9-beta3 ()
------------------------------------------------------------------------
+
+ * Fix Bug with category/author RSS feeds not properly recognize
+ their content when URL rewriting is off (garvinhicking)
* Enhanced entryproperties plugin to support entering custom field-
names (RFE #1328773) (garvinhicking)
}
if (is_array($matches)) {
- $uri = preg_replace('@(/?' . $serendipity['serendipityHTTPPath'] . preg_quote(PATH_FEEDS, '@') . '/)(.+)\.rss@i', '\2', $uri);
- if (strpos($uri, $serendipity['permalinkCategoriesPath']) === 0) {
- $catid = serendipity_searchPermalink($serendipity['permalinkFeedCategoryStructure'], $uri, $matches[1], 'category');
- if (is_numeric($catid) && $catid > 0) {
- $_GET['category'] = $catid;
- }
- }
- elseif (strpos($uri, $serendipity['permalinkAuthorsPath']) === 0) {
- $authorid = serendipity_searchPermalink($serendipity['permalinkFeedAuthorStructure'], $uri, $matches[1], 'author');
- if (is_numeric($authorid) && $authorid > 0) {
- $_GET['viewAuthor'] = $authorid;
+ if (preg_match('@(/?' . preg_quote(PATH_FEEDS, '@') . '/)(.+)\.rss@i', $uri, $uriparts)) {
+ if (strpos($uriparts[2], $serendipity['permalinkCategoriesPath']) === 0) {
+ $catid = serendipity_searchPermalink($serendipity['permalinkFeedCategoryStructure'], $uriparts[2], $matches[1], 'category');
+ if (is_numeric($catid) && $catid > 0) {
+ $_GET['category'] = $catid;
+ }
+ } elseif (strpos($uriparts[2], $serendipity['permalinkAuthorsPath']) === 0) {
+ $authorid = serendipity_searchPermalink($serendipity['permalinkFeedAuthorStructure'], $uriparts[2], $matches[1], 'author');
+ if (is_numeric($authorid) && $authorid > 0) {
+ $_GET['viewAuthor'] = $authorid;
+ }
}
}
}