Skip to content

formatted_body isn't escaped when sending from Slack -> Matrix #540

@Half-Shot

Description

@Half-Shot

Leading to messages appearing broken:

{
  "content": {
    "body": "<3",
    "format": "org.matrix.custom.html",
    "formatted_body": "<3",
    "msgtype": "m.text"
  },
  "origin_server_ts": 1604687599444,
  "sender": "@slack_jobmachine_U049HHFSJ:jobmachine.org",
  "type": "m.room.message",
  "unsigned": {
    "age": 378585
  },
  "event_id": "$h_9beldUfb-IgLnn3qK0a9inFsl36yELSondXWzdtHs",
  "room_id": "!jPyDpGsiZKKZULwFzz:jobmachine.org"
}

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-DefectBugs, crashes, hangs, vulnerabilities, or other reported problems.substitutionsAn issue relating to translation of event content between Slack and Matrix.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions