Skip to content

[bug] - dot files #193

Closed
Closed

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

Activity

  1. added a commit that references this issue on Sep 27, 2016
    162d674
  2. frozzare commented on Sep 27, 2016

    @frozzare
    Member

    Thanks, never thought of this since I don't have dot files in the same folder as page types.

  3. nlemoine commented on Sep 27, 2016

    @nlemoine
    ContributorAuthor

    Never had before either. Thanks for the fix! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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