Last modified: 2010-05-15 15:41:04 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 T10590, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8590 - $wgUserHtml=false is asking for trouble
$wgUserHtml=false is asking for trouble
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.7.x
PC Linux
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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
$wgANYTHINGHtml.

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
http://www.mediawiki.org/wiki/Manual:%24wgUserHtml
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.


Navigation
Links