diff --git a/helpers/path.go b/helpers/path.go index 5536241e52a..5e9e72bfdab 100644 --- a/helpers/path.go +++ b/helpers/path.go @@ -96,7 +96,7 @@ func UnicodeSanitize(s string) string { target := make([]rune, 0, len(source)) for _, r := range source { - if unicode.IsLetter(r) || unicode.IsDigit(r) || unicode.IsMark(r) || r == '%' || r == '.' || r == '/' || r == '\\' || r == '_' || r == '-' || r == '#' { + if unicode.IsLetter(r) || unicode.IsDigit(r) || unicode.IsMark(r) || r == '%' || r == '.' || r == '/' || r == '\\' || r == '_' || r == '-' || r == '#' || r == '+' { target = append(target, r) } } diff --git a/helpers/path_test.go b/helpers/path_test.go index 53848b0b59d..ddb1b99c6cf 100644 --- a/helpers/path_test.go +++ b/helpers/path_test.go @@ -48,6 +48,7 @@ func TestMakePath(t *testing.T) { // Issue #1488 {"संस्कृत", "संस्कृत", false}, {"a%C3%B1ame", "a%C3%B1ame", false}, // Issue #1292 + {"this+is+a+test", "this+is+a+test", false}, // Issue #1290 } for _, test := range tests {