Closed geekuillaume closed 9 years ago
You will have the same problem if your message template is a JSON and you let channels with quotes being created. The application using the push stream module should be responsible to let or not use some chars on channels names or message text. You also can use one of the others statistics formats: xml, yml, plain text, just set the Accept header to the proper value.
When a channel containing a double quote in its name is created, Push-Stream doesn't escape it so the channels stats JSON is invalid (or can be modified by inserting anything in it). The simple fix would be to a an anti-slash before each double quote and each anti-slash.
Example with a channel named:
TestRoom",","
Expected result:
With anti-slashes in the name, the behaviour is really strange, example with a channel named:
TestRoom",\","\
Expected result: