Restore htmlspecialchars() on the editToken value before outputting to HTML.
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 28 Apr 2005 23:06:47 +0000 (23:06 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 28 Apr 2005 23:06:47 +0000 (23:06 +0000)
commitaf70c2893807e255b0af75f0191c92484c901719
tree861c1b2cfac3f1b2936346e5165595d1a866bc43
parentb84ec26855f1e2c5a7f3e918d0d627b5d4d7a7dd
Restore htmlspecialchars() on the editToken value before outputting to HTML.
While at the moment the editToken() value is safe for literal inclusion is HTML output, it's a black-box value to the rest of the code and such safety is not guaranteed. Escaping text values being placed in HTML/XML attributes or text elements is a regular part of the output process and it's a bad habit to leave it out on text values that are produced elsewhere; they can and do change (such as all those localized messages which are now user-editable...)
includes/EditPage.php