summaryrefslogtreecommitdiffstats
path: root/routers/utils/utils.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-10-21 00:50:10 +0100
committerGitHub <noreply@github.com>2020-10-20 19:50:10 -0400
commit965861043ae4daf7ae50460edf5533e52980bdb1 (patch)
tree5b4ecf5e4ce21195e5cb5c449c98ee82a170d005 /routers/utils/utils.go
parent48a80096bbc7bb4b0fef487df8f176c08f0bf609 (diff)
downloadgitea-965861043ae4daf7ae50460edf5533e52980bdb1.tar.gz
gitea-965861043ae4daf7ae50460edf5533e52980bdb1.zip
Return the full rejection message and errors in flash errors (#13221)
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'routers/utils/utils.go')
-rw-r--r--routers/utils/utils.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/routers/utils/utils.go b/routers/utils/utils.go
index d8060ff077..f15bc1e62e 100644
--- a/routers/utils/utils.go
+++ b/routers/utils/utils.go
@@ -41,12 +41,6 @@ func IsValidSlackChannel(channelName string) bool {
// SanitizeFlashErrorString will sanitize a flash error string
func SanitizeFlashErrorString(x string) string {
- runes := []rune(x)
-
- if len(runes) > 512 {
- x = "..." + string(runes[len(runes)-512:])
- }
-
return strings.ReplaceAll(html.EscapeString(x), "\n", "<br>")
}