Page MenuHomePhabricator

unescaped HTML in delete-page interface
Closed, ResolvedPublic

Description

Author: wonder

Description:
Create a page that includes say, a '<' character very near the beginning. Then select 'Delete' while using the Vector skin. The "Other/additional reason" form field will contain a literal '<' character in its value attribute, which is invalid XHTML. This makes the page unviewable on sites that use the application/xhtml+xml content type to serve MathML content.


Version: 1.16.x
Severity: normal

Details

Reference
bz20655

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:51 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz20655.

This should be fixed in r56407. Make sure you have $wgHtml5 set to false if you want XHTML. Note that the variable documentation for it indicates that the option may be removed in the future (which would include removal of this fix).

ayg wrote:

Fix improved in r57182 to work for $wgWellFormedXml = $wgHtml5 = true case (which is the default config).