You are here Home > Know-how > MediaWiki - CMS > File Uploads > How do I enable upload HTML files?
MediaWiki - CMS
 

4.4.1 How do I enable upload HTML files?

15.06.2007
4.4 File Uploads [  up  ] - [ A - Z ] - [ top ] 4.5 How do I add a table of contents?

  1. Remove the HTML extension from the blacklist array in includes/DefaultSettings.php

    $wgFileBlacklist = array(...)
    

  2. In includes/SpecialUpload.php, out-comment the html check::
        ...
        793            $tags = array(
        794                    '<body',
        795                    '<head',
        796                    # X '<html',   #also in safari
        797                    '<img',
        798                    '<pre',
        799                    '<script', #also in safari
        800                    '<table',
        801                    '<title'   #also in safari
        802                    );
    




See also:
Inline html
Error messages


4.4 File Uploads       A - Z Index       Top       Disclaimer       4.5 How do I add a table of contents?


$Id: upload-html-files.html,v 1.85 2007/06/15 11:49:14 webcms Exp $
copyright © 2005-2007 by reto