* (bug 19355) Added .xhtml, .xht to upload file extension blacklist
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 19 Jul 2009 19:41:56 +0000 (19:41 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 19 Jul 2009 19:41:56 +0000 (19:41 +0000)
RELEASE-NOTES
includes/DefaultSettings.php

index 9d2a265..ddccf5e 100644 (file)
@@ -293,6 +293,7 @@ this. Was used when mwEmbed was going to be an extension.
 * (bug 19761) Removed autogenerated <meta keywords> tag with link data.
   Keyword set was not useful, and is ignored by modern search engines anway.
 * (bug 19827) Special:SpecialPages title is "Upload file
+* (bug 19355) Added .xhtml, .xht to upload file extension blacklist
 
 == API changes in 1.16 ==
 
index 4ad8bbd..99ef085 100644 (file)
@@ -2014,7 +2014,7 @@ $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
 /** Files with these extensions will never be allowed as uploads. */
 $wgFileBlacklist = array(
        # HTML may contain cookie-stealing JavaScript and web bugs
-       'html', 'htm', 'js', 'jsb', 'mhtml', 'mht',
+       'html', 'htm', 'js', 'jsb', 'mhtml', 'mht', 'xhtml', 'xht',
        # PHP scripts may execute arbitrary code on the server
        'php', 'phtml', 'php3', 'php4', 'php5', 'phps',
        # Other types that may be interpreted by some servers