Skip to content

Newlines random based on environment #568

Closed
@jasverix

Description

@jasverix

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions