Ver a proveniência

plugins/base: disallow replying to text/html parts

master
Simon Ser há 4 anos
ascendente
cometimento
be3ab9bdd5
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados ID da chave GPG: FDE7BE0E88F5E48
1 ficheiros alterados com 1 adições e 1 eliminações
  1. +1
    -1
      plugins/base/routes.go

+ 1
- 1
plugins/base/routes.go Ver ficheiro

@@ -494,7 +494,7 @@ func handleReply(ctx *koushin.Context) error {
return fmt.Errorf("failed to parse part Content-Type: %v", err)
}

if !strings.HasPrefix(strings.ToLower(mimeType), "text/") {
if !strings.EqualFold(mimeType, "text/plain") {
err := fmt.Errorf("cannot reply to %q part", mimeType)
return echo.NewHTTPError(http.StatusBadRequest, err)
}


Carregando…
Cancelar
Guardar