mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Fix for #288
This commit is contained in:
@@ -845,6 +845,11 @@ func (c *client) processMsg(msg []byte) {
|
||||
return
|
||||
}
|
||||
|
||||
// Check for pedantic and bad subject.
|
||||
if c.opts.Pedantic && !IsValidLiteralSubject(string(c.pa.subject)) {
|
||||
return
|
||||
}
|
||||
|
||||
// Scratch buffer..
|
||||
msgh := c.msgb[:len(msgHeadProto)]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user