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

Commit ecb7c00

Browse files
committed
Exclude dotfiles
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.
1 parent 6a12572 commit ecb7c00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
/**
156156
* Make sure file matches extensions from array
157157
*/
158-
if (array_key_exists(pathinfo($entry, PATHINFO_EXTENSION), $exts)) :
158+
if (array_key_exists(pathinfo($entry, PATHINFO_EXTENSION), $exts) && !preg_match('/^\./', $entry)) :
159159
$p = pathinfo($entry);
160160
$filename = $p['filename'];
161161
$fileimg_path = escapeshellarg('./tmp/' . $filename . '.jpg');

0 commit comments

Comments
 (0)