Last modified: 2005-08-27 19:59:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 376 - Allow extensions to handle URL variables
Allow extensions to handle URL variables
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2004-09-03 23:24 UTC by SJ
Modified: 2005-08-27 19:59 UTC (History)
1 user (show)

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


Description SJ 2004-09-03 23:24:16 UTC
Allow MW extensions to parse incoming URL variables.  Possible uses include:

* Conveying state from the referring page
** Autosubmission of content (such as the referring page, the title of the
referring page, the username of the user on the referring (non-public) page,
etc) to the target page
** Modification of the displayed page based on URL variables
* Creating wikilinks which redirect dynamically to pages, based on the output of
a function of URL variables

Of course the list of variables that would be accepted through any variable
handle, and the functions that would be allowed to process those variables,
should be greatly restricted.
Comment 1 Niklas Laxström 2005-08-27 17:35:12 UTC
Extensions can pretty much do that everything, or am I missing something?
Comment 2 Brion Vibber 2005-08-27 19:59:36 UTC
Extensions can indeed use $wgRequest to grab all the 
variables they want.

(Note that this should never, ever be done in a parser hook 
extension -- parser extensions must not rely on anything 
outside their given content and parameters or they will 
break with caching and with future parser changes. Action 
hook handlers, special pages, etc can and do legitimately 
take parameters from the URL or POST variables.)

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