diff --git a/inc/inc.ClassExtensionMgr.php b/inc/inc.ClassExtensionMgr.php index 10917adc8..f3f1d1487 100644 --- a/inc/inc.ClassExtensionMgr.php +++ b/inc/inc.ClassExtensionMgr.php @@ -256,7 +256,8 @@ class SeedDMS_Extension_Mgr { if( in_array(substr($file, strrpos($file, '/')+1), array('.', '..')) ) continue; // Ignore all files and directories starting with a '.' - if( preg_match('#/\\.#', $file) ) + // but keep an .htaccess file + if( !preg_match('#\\.htaccess$#', $file) && preg_match('#/\\.#', $file) ) continue; $file = realpath($file);