http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73880

Revision: 73880
Author:   demon
Date:     2010-09-28 11:12:56 +0000 (Tue, 28 Sep 2010)

Log Message:
-----------
More bug 671: whitelist <kbd> and <samp> for user input. Followup per r70164's 
comment.

Modified Paths:
--------------
    trunk/phase3/RELEASE-NOTES
    trunk/phase3/includes/Sanitizer.php

Modified: trunk/phase3/RELEASE-NOTES
===================================================================
--- trunk/phase3/RELEASE-NOTES  2010-09-28 10:04:22 UTC (rev 73879)
+++ trunk/phase3/RELEASE-NOTES  2010-09-28 11:12:56 UTC (rev 73880)
@@ -138,7 +138,7 @@
   because it encourages edits to be marked minor accidentally and it can be
   easily replicated by custom user scripts for those who really want it.
 * Non-file pages can no longer be moved to the file namespace, nor vice versa.
-* (bug 671) The <dfn> element has been whitelisted in user input.
+* (bug 671) The <dfn>, <kbd> and <samp> elements have been whitelisted in user 
input
 * (bug 24563) Entries on Special:WhatLinksHere now have a link to their history
 * (bug 21503) There's now a "reason" field when creating account for other 
users
 * (bug 24418) action=markpatrolled now requires a token

Modified: trunk/phase3/includes/Sanitizer.php
===================================================================
--- trunk/phase3/includes/Sanitizer.php 2010-09-28 10:04:22 UTC (rev 73879)
+++ trunk/phase3/includes/Sanitizer.php 2010-09-28 11:12:56 UTC (rev 73880)
@@ -368,7 +368,8 @@
                                'h2', 'h3', 'h4', 'h5', 'h6', 'cite', 'code', 
'em', 's',
                                'strike', 'strong', 'tt', 'var', 'div', 
'center',
                                'blockquote', 'ol', 'ul', 'dl', 'table', 
'caption', 'pre',
-                               'ruby', 'rt' , 'rb' , 'rp', 'p', 'span', 'u', 
'abbr', 'dfn'
+                               'ruby', 'rt' , 'rb' , 'rp', 'p', 'span', 'u', 
'abbr', 'dfn',
+                               'kbd', 'samp'
                        );
                        $htmlsingle = array(
                                'br', 'hr', 'li', 'dt', 'dd'



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to