Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

Commit

Permalink
Exclude dotfiles
Browse files Browse the repository at this point in the history
Make sure that dotfiles are not included in the feed generation.
Sometimes extended attributes are saved in dotfiles with the same
suffix. Those files are now excluded by default and no longer clutter up
the feed.
  • Loading branch information
herrbischoff committed Oct 8, 2016
1 parent 6a12572 commit ecb7c00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
/**
* Make sure file matches extensions from array
*/
if (array_key_exists(pathinfo($entry, PATHINFO_EXTENSION), $exts)) :
if (array_key_exists(pathinfo($entry, PATHINFO_EXTENSION), $exts) && !preg_match('/^\./', $entry)) :
$p = pathinfo($entry);
$filename = $p['filename'];
$fileimg_path = escapeshellarg('./tmp/' . $filename . '.jpg');
Expand Down

0 comments on commit ecb7c00

Please sign in to comment.