jcampbell1 / simple-file-manager

A Simple PHP file manager. The code is a single php file.
MIT License
914 stars 502 forks source link

Hidden files #90

Closed JonnyTech closed 4 years ago

JonnyTech commented 5 years ago

What is the correct way to hide "hidden files", ie files beginning with a dot such as .htaccess and .ftpquota?

This works for the above examples: $hidden_extensions = ['php','htaccess','ftpquota']; but it will not for others, is there a generic solution?

jcampbell1 commented 4 years ago

This is fixed in 49790c0

Fixed by using glob style matching rather than extension based: $hidden_patterns = ['*.php','.*'];