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
format(message)
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
raise NotImplementedError
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
raise NotImplementedError
end
private
# NOTE: Make sure to call `#strip_markup` on any untrusted user input that's added to the string.
def message
raise NotImplementedError
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