Skip to content

Autoloading each and every file in child theme statics folder whether its PHP or some error log file. #80

Description

@ahtshamfarooq1

We have a site on the cherry framework and somehow PHP error_log file was created in the directory
"/child-theme/init/statics/error_log".

Since cherryframework4/init/init.php:66 automatically require each and every file in that directory using scandir function, this caused fatal errors as files were included which were none PHP files(error_log).

Scandir should also check for file extensions before loading anything in that directory.
Code i am referring to: cherryframework4/init/init.php:66
image

Activity

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