m (moved CKFinder/Developers Guide/PHP/Configuration/Security/Html extensions to CKFinder 1.x/Developers Guide/PHP/Configuration/Security/Html extensions) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{Ckfinder html extension Description|code=<pre>$config['HtmlExtensions'] = array('html', 'htm', 'xml', 'js'); | |
− | <pre>$config['HtmlExtensions'] = array('html', 'htm', 'xml | + | </pre>|code2=<pre>$config['HtmlExtensions'] = array('html', 'htm', 'xml', 'js', 'xsl'); |
− | </pre> | + | </pre>}} |
− | |||
− | <pre>$config['HtmlExtensions'] = array('html', 'htm', 'xml | ||
− | </pre> | ||
− | |||
− | |||
− |
Latest revision as of 07:46, 28 May 2010
Sometimes when you're uploading a file it may have an html code in the first KB of its data. The CKFinder will upload the file with the html code only when the file extension is written in the following section:$config['HtmlExtensions'] = array('html', 'htm', 'xml', 'js');So for example: if you want to upload a .xsl file which has a html code in the beginning, you should add its the extension to the list.
$config['HtmlExtensions'] = array('html', 'htm', 'xml', 'js', 'xsl');This function secures your server from the attack of the Universal XSS / MIME Type detection.