cherryframework4 icon indicating copy to clipboard operation
cherryframework4 copied to clipboard

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

Open ahtshamfarooq1 opened this issue 7 years ago • 0 comments

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

ahtshamfarooq1 avatar Nov 06 '18 06:11 ahtshamfarooq1