I didn’t find any option to exclude filenames with a dot in the front of the name, so I made a little change in the code of the file "assets/snippets/filedownload/filedownload.class.inc.php".
In line number 402 I changed the code
$validFile = $this->_config['filterExt'] ? $this->validExtension($extension) : 1 ;
to
$validFile = $this->validFilename($file) && ($this->_config['filterExt'] ? $this->validExtension($extension) : 1 );
, in line number 408
$validFile = $this->_config['filterExt'] ? $this->validExtension($extension) : 1 ;
to this
$validFile = $this->validFilename($file) && ($this->_config['filterExt'] ? $this->validExtension($extension) : 1 );
and added in line number 297 this little function:
function validFilename($filename) {
if ( $filename[0] === "." ) {
return 0;
} else {
return 1;
}
}
Could this or something like that be added to the next version update?