Page MenuHomePhabricator

Patch to allow Special:Recentchanges to limit results to a particular page (esp. RSS feeds)
Closed, DuplicatePublic

Description

Author: jsmith2

Description:
I tried to stick to the mediawiki coding style. This patch was created to supply
the Hula project with the ability to provide RSS feeds for any given page,
instead of the wiki as a whole, simply by appending "&page=<wikiword>" to the
GET string. Comments welcome. :)

I can port this patch forward to any particular version of Mediawiki you'd like,
if you find yourselves too busy to do so.

Note that I don't allow caching if a page parameter is passed, so that we don't
cache page-specific versions.


Version: 1.4.x
Severity: normal
OS: Windows XP
Platform: PC
URL: http://joeysmith.com/wikimedia.patch

Details

Reference
bz1773

Revisions and Commits

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:18 PM
bzimport set Reference to bz1773.
bzimport added a subscriber: Unknown Object (MLST).

Maybe a better way to achieve this is to add a feed object to the
history page.

jsmith2 wrote:

(In reply to comment #1)

Maybe a better way to achieve this is to add a feed object to the
history page.

Just wanted to clarify: does this mean mediawiki isn't interested in
this patch, but *would* be interested in a similar patch that does
what you describe?

Note that the patch linked to here seems to have an SQL injection vulnerability in this line:
+ ($pageRequested ? " AND rc_title = '{$pageRequested}' " : "").
$pageRequested is taken from input and not quoted.

I'm marking this bug as duplicate to bug 472 ("Basic XML Feed support for history"), since that seems a
more appropriate place to put such a feed than the site-wide Recentchanges.

  • This bug has been marked as a duplicate of 472 ***
epriestley added a commit: Unknown Object (Diffusion Commit).Mar 4 2015, 8:23 AM