You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
escaped, _=EscapeControlReader(strings.NewReader(string(html)), sb, locale, allowed...) // err has been handled in EscapeControlReader
27
+
returnescaped, template.HTML(sb.String())
33
28
}
34
29
35
-
// EscapeControlReaders escapes the unicode control sequences in a provided reader of HTML content and writer in a locale and returns the findings as an EscapeStatus and the escaped []byte
30
+
// EscapeControlReader escapes the unicode control sequences in a provided reader of HTML content and writer in a locale and returns the findings as an EscapeStatus
// EscapeControlStringReader escapes the unicode control sequences in a provided reader of string content and writer in a locale and returns the findings as an EscapeStatus and the escaped []byte. HTML line breaks are not inserted after every newline by this method.
Copy file name to clipboardExpand all lines: modules/git/command.go
+3-8
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,6 @@ import (
14
14
"os/exec"
15
15
"strings"
16
16
"time"
17
-
"unsafe"
18
17
19
18
"code.gitea.io/gitea/modules/git/internal"//nolint:depguard // only this file can use the internal type CmdArg, other files and packages should use AddXxx functions
0 commit comments