Skip to content

Conversation

@WebHelpersPau
Copy link

… files

When running scandir, the method getAvailableTemplates() get not only . and .. files, but also index.php
This results in a warning about open_base_dir restrictions if set when running the following get_file_contents()

Warning à la ligne 41 du fichier /var/www/PRESTASHOP/override/modules/ps_emailsmanager/ps_emailsmanager.php
[2] file_exists(): open_basedir restriction in effect. File(/var/www/PRESTASHOP/modules/ps_emailsmanager/imports/index.php/settings.json) is not within the allowed path(s): (/var/www/PRESTASHOP:/tmp)

… files

When running scandir, the method getAvailableTemplates() get not only . and .. files, but also index.php
This results in a warning about open_base_dir restrictions if set when running the following get_file_contents()

Warning à la ligne 41 du fichier /var/www/PRESTASHOP/override/modules/ps_emailsmanager/ps_emailsmanager.php
[2] file_exists(): open_basedir restriction in effect. File(/var/www/PRESTASHOP/modules/ps_emailsmanager/imports/index.php/settings.json) is not within the allowed path(s): (/var/www/PRESTASHOP:/tmp)
@atomiix
Copy link

atomiix commented Oct 27, 2021

Hi @WebHelpersPau, you're PR seems valid to me! Can you specify a How to test so the QA team can easily check that your PR is doing what is expected? :)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants