cherryframework4
cherryframework4 copied to clipboard
Autoloading each and every file in child theme statics folder whether its PHP or some error log file.
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
