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

Use native PHP API to enumerate licenses. #6

Open
fancycode opened this issue Dec 12, 2016 · 1 comment
Open

Use native PHP API to enumerate licenses. #6

fancycode opened this issue Dec 12, 2016 · 1 comment
Assignees

Comments

@fancycode
Copy link
Member

Instead of exec("ls ...") you should rather use native PHP APIs like scandir or opendir/readdir to enumerate license files. Best would also be to traverse the path recursively.

This applies to

exec( 'ls /etc/spreedbox/licenses/', $request);

@PeterEdens
Copy link

Native PHP API is now being used to recursively find the license files.

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

No branches or pull requests

2 participants