Last modified: 2012-10-12 10:41:40 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T25837, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23837 - WikiArticleFeeds error in multi-item rss display
WikiArticleFeeds error in multi-item rss display
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikiArticleFeeds (Other open bugs)
unspecified
All All
: Low major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-08 15:34 UTC by nicolas_albert
Modified: 2012-10-12 10:41 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description nicolas_albert 2010-06-08 15:34:01 UTC
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';

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links