0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Fix for sendmail problem

closes #871
- added solution from email
- tested on OSX
This commit is contained in:
Sebastian Gierlinger 2013-09-26 15:07:52 +02:00 committed by Hannah Wolfe
parent 4ad935e4f5
commit 3def65ee11

View file

@ -51,7 +51,7 @@ GhostMailer.prototype.detectSendmail = function () {
if (err && !/bin\/sendmail/.test(stdout)) {
return reject();
}
resolve(stdout.toString());
resolve(stdout.toString().replace(/(\n|\r|\r\n)$/, ''));
});
});
};