mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
Fixed out of bounds array index (#6576)
This commit is contained in:
committed by
Christopher Speller
parent
7be7c67757
commit
b53ca57bad
@@ -37,7 +37,7 @@ func (me *ShortcutsProvider) GetCommand(T goi18n.TranslateFunc) *model.Command {
|
||||
}
|
||||
|
||||
func (me *ShortcutsProvider) DoCommand(args *model.CommandArgs, message string) *model.CommandResponse {
|
||||
shortcutIds := [29]string{
|
||||
shortcutIds := [...]string{
|
||||
"api.command_shortcuts.header",
|
||||
// Nav shortcuts
|
||||
"api.command_shortcuts.nav.header",
|
||||
|
||||
Reference in New Issue
Block a user