mirror of
https://github.com/shazow/ssh-chat.git
synced 2026-10-27 01:16:21 +03:00
motd: Don't trim surrounding whitespace from the --motd file input.
This commit is contained in:
1 parent
d2f08490f7
commit
87d38405ae
1 file changed
+1
-1
+1
-1
@@ -152,7 +152,7 @@ func main() {
|
||||
if err != nil {
|
||||
fail(7, "Failed to load MOTD file: %v\n", err)
|
||||
}
|
||||
motdString := strings.TrimSpace(string(motd))
|
||||
motdString := string(motd)
|
||||
// hack to normalize line endings into \r\n
|
||||
motdString = strings.Replace(motdString, "\r\n", "\n", -1)
|
||||
motdString = strings.Replace(motdString, "\n", "\r\n", -1)
|
||||
|
||||
Reference in new issue
Block a user