[PR #2479] [MERGED] Fix slice out of bounds error in mailer #16421

Closed
opened 2025-11-02 12:10:14 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2479
Author: @cez81
Created: 9/10/2017
Status: Merged
Merged: 9/11/2017
Merged by: @lunny

Base: masterHead: issue2472


📝 Commits (1)

  • 1a46bc9 Fix slice out of bounds error in mailer

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 modules/mailer/mailer.go (+2 -1)

📄 Description

Fix #2472 by using TruncateString() instead of just slicing and hoping for the best.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/2479 **Author:** [@cez81](https://github.com/cez81) **Created:** 9/10/2017 **Status:** ✅ Merged **Merged:** 9/11/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `issue2472` --- ### 📝 Commits (1) - [`1a46bc9`](https://github.com/go-gitea/gitea/commit/1a46bc96f9d6f8538d56bc2b2e0039a12c72c5e1) Fix slice out of bounds error in mailer ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `modules/mailer/mailer.go` (+2 -1) </details> ### 📄 Description Fix #2472 by using TruncateString() instead of just slicing and hoping for the best. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:10:14 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16421