mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-08 20:46:05 +00:00
keep .htaccess file when downloading an extension
This commit is contained in:
parent
e2f2021b19
commit
656cc5843f
|
@ -256,7 +256,8 @@ class SeedDMS_Extension_Mgr {
|
||||||
if( in_array(substr($file, strrpos($file, '/')+1), array('.', '..')) )
|
if( in_array(substr($file, strrpos($file, '/')+1), array('.', '..')) )
|
||||||
continue;
|
continue;
|
||||||
// Ignore all files and directories starting with a '.'
|
// 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;
|
continue;
|
||||||
|
|
||||||
$file = realpath($file);
|
$file = realpath($file);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user