summaryrefslogtreecommitdiff
path: root/server/channel/command.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/channel/command.go')
-rw-r--r--server/channel/command.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/channel/command.go b/server/channel/command.go
index af5ff16..e645055 100644
--- a/server/channel/command.go
+++ b/server/channel/command.go
@@ -25,6 +25,10 @@ func (c *Channel) SendRequest(r session.Request) {
return
}
}
+ if len(m.Fields[""]) > 50000 {
+ r.Reply(proto.Fail{"too-long", "", nil}.Cmd())
+ return
+ }
default:
r.ReplyInvalid()
return