Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After install, the getAvailableTemplates() method , scandir find .php… #16

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

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