You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most Unix-/Linux-type operating systems (including OS X) produce hidden system files usually starting with a dot in the file's name (e.g. the infamous .DS_Store on OS X). PHP's scandir picks these up as well, but they are not excluded by if ($file != '.' && $file != '..') in functions.php.
Ideally, the *FilesInFolder functions should probably exclude any file name that starts with a ..
The text was updated successfully, but these errors were encountered:
Thanks @yellowled. Added a .DS_Store file to the markup directory and sure enough, it was being picked up by scandir and was not filtered out by the if statement.
I've updated the scandir check to skip files that start with a .
Most Unix-/Linux-type operating systems (including OS X) produce hidden system files usually starting with a dot in the file's name (e.g. the infamous
.DS_Store
on OS X). PHP'sscandir
picks these up as well, but they are not excluded byif ($file != '.' && $file != '..')
infunctions.php
.Ideally, the
*FilesInFolder
functions should probably exclude any file name that starts with a.
.The text was updated successfully, but these errors were encountered: