Incoming webhook - problems with "&" character

Description

Hello
I’m using your incoming webhook script:
https://rocket.chat/docs/administrator-guides/integrations/

It works fine as long as there’s no “&” in the message. If the message contains a “&” the whole message is empty.

Here’s the log output for the test message “TestA & TestB”
{ payload: ‘{“text”:“TestA ', ’ TestB”,“channel”:"@horstepipe",“username”:“bot”,“icon_emoji”:":bot"}’: ‘’ }

Anybody got a clue how to fix that?

Best regards

Server Setup Information

  • Version of Rocket.Chat Server: 1.1.3
  • Operating System: Ubuntu
  • Deployment Method: Snap
1 Like

Same question here. I am using Rest API and nothing gets throug when & occurs.

Tried do use %26 or & but still everything breaks up. Any sugestions anyone?

We are using self hosted v. 0.6 - it’could be fixed in 0.7 - https://github.com/RocketChat/Rocket.Chat/pull/12140

We’ll do update and inform You on progress.