Merge branch 'seeddms-5.1.x' into seeddms-6.0.x

This commit is contained in:
Uwe Steinmann 2020-09-24 11:56:29 +02:00
commit 78948a3f51

View File

@ -260,7 +260,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);