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

fix(core): better check to include file from path #466

Merged

Conversation

stonebuzz
Copy link
Contributor

@stonebuzz stonebuzz commented Jan 14, 2022

From CLOUD context RuntimeException is throw when we try to go to dropdowns created from fields plugin

realpath =
/AAA/BBB/CCC/DDD/EEE/glpi_files/_plugins/fields/front/secteurdaffectationfielddropdown.php

frontpath =
/XXX/YYY/CCC/DDD/EEE/glpi_files/_plugins/fields/front

To prevent load missing or unreadable file just check if it readable or if exist

Internal 23215

@cedric-anne
Copy link
Contributor

commondropdown.form.php should be updated too.

@cedric-anne cedric-anne added this to the 1.12.9 milestone Jan 14, 2022
front/commondropdown.form.php Outdated Show resolved Hide resolved
@cedric-anne cedric-anne merged commit 10ea311 into pluginsGLPI:develop Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants