Commit 2dab461b authored by Andy Soiron's avatar Andy Soiron

Merge branch '349699-chat-messages-document-strip-markup' into 'master'

Add comments about #strip_markup usage

See merge request gitlab-org/gitlab!78474
parents 26fd7bd0 3f784bff
...@@ -47,16 +47,21 @@ module Integrations ...@@ -47,16 +47,21 @@ module Integrations
format(message) format(message)
end end
# NOTE: Make sure to call `#strip_markup` on any untrusted user input that's added to the
# `title`, `subtitle`, `text`, `fallback`, or `author_name` fields.
def attachments def attachments
raise NotImplementedError raise NotImplementedError
end end
# NOTE: Make sure to call `#strip_markup` on any untrusted user input that's added to the
# `title`, `subtitle`, `text`, `fallback`, or `author_name` fields.
def activity def activity
raise NotImplementedError raise NotImplementedError
end end
private private
# NOTE: Make sure to call `#strip_markup` on any untrusted user input that's added to the string.
def message def message
raise NotImplementedError raise NotImplementedError
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment