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

Newlines random based on environment #568

Open
jasverix opened this issue May 10, 2024 · 0 comments
Open

Newlines random based on environment #568

jasverix opened this issue May 10, 2024 · 0 comments

Comments

@jasverix
Copy link

Version(s) affected

4.x

Description

When encoding or decoding RSA keys, the KeyConverter uses the PHP_EOL constant to add newlines. On Linux machines it works nice, but in other environments, it becomes "\r\n" which destroys the keys.

How to reproduce

Try to load a valid key on a Windows machine.

Possible Solution

Replace PHP_EOL with "\n".

Additional Context

No response

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

1 participant