Last modified: 2005-08-27 19:59:36 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 T2376, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 376 - Allow extensions to handle URL variables
Allow extensions to handle URL variables
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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.


Navigation
Links