MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / validateConversationID

Function validateConversationID

internal/httpapi/messages.go:605–610  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

603)
604
605func validateConversationID(id string) error {
606 if strings.ContainsAny(id, "\r\n") {
607 return errors.New("conversation_id must not contain CR or LF")
608 }
609 return nil
610}
611
612// normalizeLabel canonicalizes a single label (lowercase, charset
613// [a-z0-9:_-], 1..maxLabelLength). allowSystem mirrors the read-side

Callers 5

handleListMessagesMethod · 0.70
handleReplyMethod · 0.70
handleForwardMethod · 0.70
validateOutboundBodyMethod · 0.70
handleGetConversationMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected