Skip to content

[bug] - dot files #193

@nlemoine

Description

@nlemoine

Bug description

Some weird characters are printed on every page (front and admin). Digging further, I noticed the content of .DS_Store was displayed. Looks like dot files are also parsed in directories: https://github.com/wp-papi/papi/blob/master/src/lib/core/io.php#L54-L64

What I expected

Skip dot files when parsing directories.

Steps to reproduce

  • Create any dot file in a directory parsed by Papi and write any content in it.
  • Load any WordPress page, content will be output at the top of the source code.

What versions of softwares are you using?

  • Papi: dev-master
  • WordPress: 4.6.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions