Last modified: 2010-05-15 15:41:04 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 8590 - $wgUserHtml=false is asking for trouble
$wgUserHtml=false is asking for trouble
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
PC Linux
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-01-11 21:46 UTC by Dan Jacobson
Modified: 2010-05-15 15:41 UTC (History)
0 users

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


Description Dan Jacobson 2007-01-11 21:46:14 UTC
Usually one sees:

$ URL=...index.php?title=some_non_existant_page
$ w3m -dump $URL|sed ...
There is currently no text in this page, you can search for this page title in
other pages or edit this page.

But if one dares set $wgUserHtml = false;, holy moly, all around
the system things become ugly:

$ w3m -dump $URL|sed ...
<div class='noarticletext'>There is currently no text in this page, you can
search for this page title in other pages or edit this page.</div>

And to think the name of the variable is $wgUserHtml. It acts like an

DefaultSettings.php doesn't mention the extent things will break when
$wgUserHtml = false. It just says:

/** Allow limited user-specified HTML in wiki pages?
 * It  will be run through a whitelist for security. Set this to false if you
 * want wiki pages to consist only of wiki markup. Note that replacements do not
 * yet exist for all HTML constructs.*/
$wgUserHtml = true;

So also mention
*Breaks system messages.
*Better edit any HTML off of existing pages first.
*some HTML tags are also wikitext tags, some wikitext tags are HTML
tags, so better get a grip on which are which, unlike yours truly.
Comment 1 Brion Vibber 2007-01-11 22:08:12 UTC
Yeah, nothing works with that off as wiki text throughout the UI relies on it.
Don't turn it on; it'll likely get removed at some point.
Comment 2 Antoine "hashar" Musso (WMF) 2007-01-20 18:22:40 UTC
Maybe we should get it removed for 1.10 ?
Comment 3 Antoine "hashar" Musso (WMF) 2007-01-20 23:54:45 UTC
If we drop it, make sure we add a note on
Comment 4 Antoine "hashar" Musso (WMF) 2007-04-16 13:51:32 UTC
$wgUserHtml is no more.

Committed as r21285.

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