Closed itz-Jana closed 2 weeks ago
Some editors add a newline at the end of a file automatically, which currently is processed by comin.
This makes authentication at the remote fail.
As there are no newlines or other whitespace characters that are relevant, doing an input sanitization here makes sense.
Fixes https://github.com/nlewo/comin/issues/57 and probably also https://github.com/nlewo/comin/issues/38 (as Forgejo does not have a requirement for a specific username, when using an access token).
Thank you.
Note I'm not sure modifying the content of such kind of file is a good idea, but ok, in practice it should not be harmful.
Some editors add a newline at the end of a file automatically, which currently is processed by comin.
This makes authentication at the remote fail.
As there are no newlines or other whitespace characters that are relevant, doing an input sanitization here makes sense.
Fixes https://github.com/nlewo/comin/issues/57 and probably also https://github.com/nlewo/comin/issues/38 (as Forgejo does not have a requirement for a specific username, when using an access token).