Details
Description
When using STOMP over WebSockets, STOMP header values are not escaped in frames sent by ActiveMQ.
When the following frame is sent:
SEND
destination:/queue/test
escaped-header:one\ntwo\cthreeHello World
ActiveMQ interprets escaped headers correctly, but does not escape them when sending own frames:
MESSAGE
expires:0
destination:/queue/test
subscription:12345
priority:4
escaped-header:one
two:three
message-id:ID:-50091-1497003246573-3:1:-1:1:1
timestamp:1497003247783Hello World
Correctly escaped frame should look like this:
MESSAGE
expires:0
destination:/queue/test
subscription:12345
priority:4
escaped-header:one\ntwo\cthree
message-id:ID\c-50091-1497003246573-3\c1\c-1\c1\c1
timestamp:1497003247783Hello World