mirror of
https://github.com/kovetskiy/mark.git
synced 2026-05-03 05:42:35 +00:00
fix: trim whitespace from stdin password
When password is read from stdin (e.g. echo password | mark ...), the trailing newline was included in the password string, causing authentication to fail. Use strings.TrimSpace to strip it. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -46,7 +46,7 @@ func GetCredentials(
|
||||
)
|
||||
}
|
||||
|
||||
password = string(stdin)
|
||||
password = strings.TrimSpace(string(stdin))
|
||||
}
|
||||
|
||||
if compileOnly && targetURL == "" {
|
||||
|
||||
Reference in New Issue
Block a user