1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

file exception added

This commit is contained in:
CaMer0n
2010-01-12 16:11:30 +00:00
parent 1364857dd3
commit a12091fcaa

View File

@@ -9,8 +9,8 @@
* *
* *
* $Source: /cvs_backup/e107_0.8/e107_admin/admin.php,v $ * $Source: /cvs_backup/e107_0.8/e107_admin/admin.php,v $
* $Revision: 1.25 $ * $Revision: 1.26 $
* $Date: 2009-11-18 01:04:24 $ * $Date: 2010-01-12 16:11:30 $
* $Author: e107coders $ * $Author: e107coders $
*/ */
@@ -81,7 +81,7 @@ if (count($allowed_types) == 0)
//echo "Allowed filetypes = ".implode(', ',array_keys($allowed_types)).'<br />'; //echo "Allowed filetypes = ".implode(', ',array_keys($allowed_types)).'<br />';
// avatar check. // avatar check.
$public = array(e_UPLOAD, e_UPLOAD.'avatars'); $public = array(e_UPLOAD, e_UPLOAD.'avatars');
$exceptions = array(".","..","/","CVS","avatars","Thumbs.db",".htaccess","php.ini",".cvsignore"); $exceptions = array(".","..","/","CVS","avatars","Thumbs.db",".htaccess","php.ini",".cvsignore",'e107.htaccess');
//TODO use $file-class to grab list and perform this check. //TODO use $file-class to grab list and perform this check.
foreach ($public as $dir) foreach ($public as $dir)