Skip to content

Conversation

@marksmith
Copy link

As documented, File.join expects individual path components. For improved security (reliable path traversal detection), Zen by Aikido for Ruby enforces this documented usage by default.

In the affected methods, File.join is currently called with a constant string and the array result of args.flatten.

This change corrects the usage of File.join by using the splat (*) operator to pass each path component individually, ensuring that the logging gem works correctly in applications protected by Zen by Aikido.

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