https://bugzilla.wikimedia.org/show_bug.cgi?id=23837

           Summary: WikiArticleFeeds error in multi-item rss display
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Normal
         Component: [other]
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: nicolas_alb...@msn.com


In my config (mediawiki-1.15.1, WikiArticleFeeds.php 0.6.5), the URL 
index.php?title=mypage&action=feed&feed=rss
prints all items of my rss feed in one line.
Exemple : 
* wikicode page : 
<startFeed />
=== Second Item ===
Blabla refer to [[User:Joe]].
--~~~~~
=== First  ===
Blabla the first.
--~~~~
<endFeed />

* is displayed (approx) : 
<h1>My site:News</h1>
<p>Second Item Blabla refer to [[User:Joe]].7 juin 2010 16:54 (UTC)First Blabla
the first. 7 juin 2010 16:54 (UTC).<p>

#################
Suggestion : 
Change regex used to detect items (has items formatting changed?) : 
WikiArticleFeeds.php line 458 : 
- $sectionRegExp = '#<h' . $lvl . '>\s*\s*(.*?)\s*\s*</h' . $lvl . '>#m'; 
+ $sectionRegExp = '#<a.+?id="(.*?)"></a><h' . $lvl . '>\s*\s*(.*?)\s*\s*</h' .
$lvl . '>#m';

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to