Some plugins call system::fuserk(jeedom::getUsbMapping($port)); but jeedom::getUsbMapping($port) will return an array if port is an empty string and then we got error Erreur sur la fonction deamon_start du plugin : file_exists(): Argument #1 ($filename) must be of type string, array given
exemple: https://community.jeedom.com/t/dsm7-docker-erreurs-sur-plugins-protocole-domotique/127102
so the goal of this PR is to protect system::fuserk function by validating argument
Suggested changelog entry
bugfix debian12
issue:
2561
Types of changes
[X] Bug fix (non-breaking change which fixes)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] This change is only breaking for integrators, not for external standards or end-users.
[ ] Documentation improvement
PR checklist
[X] I have checked there is no other PR open for the same change.
Description
Some plugins call
system::fuserk(jeedom::getUsbMapping($port));
butjeedom::getUsbMapping($port)
will return an array if port is an empty string and then we got errorErreur sur la fonction deamon_start du plugin : file_exists(): Argument #1 ($filename) must be of type string, array given
exemple: https://community.jeedom.com/t/dsm7-docker-erreurs-sur-plugins-protocole-domotique/127102so the goal of this PR is to protect system::fuserk function by validating argument
Suggested changelog entry
issue:
2561
Types of changes
PR checklist