mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 22:30:56 +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 {
|
||||
message := ""
|
||||
if err != nil {
|
||||
message = err.Error()
|
||||
message = strings.Trim(err.Error(), "\x00")
|
||||
}
|
||||
|
||||
e = ¬ifier.LogEvent{
|
||||
|
||||
Reference in New Issue
Block a user