mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +03:00
plugin: remove invalid chars from error message
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -340,7 +340,7 @@ func (m *Manager) NotifyLogEvent(event notifier.LogEventType, protocol, username
|
|||||||
if e == nil {
|
if e == nil {
|
||||||
message := ""
|
message := ""
|
||||||
if err != nil {
|
if err != nil {
|
||||||
message = err.Error()
|
message = strings.Trim(err.Error(), "\x00")
|
||||||
}
|
}
|
||||||
|
|
||||||
e = ¬ifier.LogEvent{
|
e = ¬ifier.LogEvent{
|
||||||
|
|||||||
Reference in New Issue
Block a user