GO-2024-2444: Mattermost allows demoted guests to change group names in github.com/mattermost/mattermost-server
GO-2024-2446: Mattermost Cross-site Scripting vulnerability in github.com/mattermost/mattermost-server
GO-2024-2448: Mattermost notified all users in the channel when using WebSockets to respond individually in github.com/mattermost/mattermost-server
GO-2024-2450: Mattermost viewing archived public channels permissions vulnerability in github.com/mattermost/mattermost-server
GO-2024-2541: Mattermost vulnerable to denial of service via large number of emoji reactions in github.com/mattermost/mattermost-server
GO-2024-2566: Mattermost fails to check the required permissions in github.com/mattermost/mattermost-server
GO-2024-2588: Mattermost race condition in github.com/mattermost/mattermost-server
GO-2024-2589: Mattermost denial of service through long emoji value in github.com/mattermost/mattermost-server
GO-2024-2590: Mattermost leaks details of AD/LDAP groups of a teams in github.com/mattermost/mattermost-server
GO-2024-2591: Mattermost post fetching without auditing in compliance export in github.com/mattermost/mattermost-server
GO-2024-2592: Mattermost allows attackers access to posts in channels they are not a member of in github.com/mattermost/mattermost-server
GO-2024-2593: Mattermost fails to check the "invite_guest" permission in github.com/mattermost/mattermost-server
GO-2024-2594: Mattermost fails to limit the number of role names in github.com/mattermost/mattermost-server
GO-2024-2595: Mattermost fails to properly restrict the access of files attached to posts in github.com/mattermost/mattermost-server
GO-2024-2635: Mattermost incorrectly allows access individual posts in github.com/mattermost/mattermost-server
GO-2024-2695: Mattermost Server doesn't limit the number of user preferences in github.com/mattermost/mattermost-server
GO-2024-2696: Mattermost fails to authenticate the source of certain types of post actions in github.com/mattermost/mattermost-server
GO-2024-2706: Mattermost Server Improper Access Control in github.com/mattermost/mattermost-server
GO-2024-2707: Mattermost Server Improper Access Control in github.com/mattermost/mattermost-server
Documentation
¶
type Container struct {
}
Container represents a set of templates that can be render
New creates a new templates container scanning a directory.
NewFromTemplates creates a new templates container using a
`template.Template` object
NewWithWatcher creates a new templates container scanning a directory and
watch the directory filesystem changes to apply them to the loaded
templates. This function returns the container and an errors channel to pass
all errors that can happen during the watch process, or an regular error if
we fail to create the templates or the watcher. The caller must consume the
returned errors channel to ensure not blocking the watch process.
Close stops the templates watcher of the container in case you have created
it with watch parameter set to true
RenderToString renders the template referenced with the template name using
the data provided and write it to the writer provided
RenderToString renders the template referenced with the template name using
the data provided and return a string with the result
Data contains the data used to populate the template variables, it has Props
that can be of any type and HTML that only can be `template.HTML` types.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.