mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-14 15:56:44 +03:00
Add ';' to unescaped characters
This commit is contained in:
committed by
Erik Dubbelboer
parent
5f6439b6df
commit
6231e237de
+2
-1
@@ -417,7 +417,8 @@ func AppendQuotedArg(dst, src []byte) []byte {
|
||||
func appendQuotedPath(dst, src []byte) []byte {
|
||||
for _, c := range src {
|
||||
if c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z' || c >= '0' && c <= '9' ||
|
||||
c == '/' || c == '.' || c == ',' || c == '=' || c == ':' || c == '&' || c == '~' || c == '-' || c == '_' {
|
||||
c == '/' || c == '.' || c == ',' || c == '=' || c == ':' || c == '&' ||
|
||||
c == '~' || c == '-' || c == '_' || c == ';' {
|
||||
dst = append(dst, c)
|
||||
} else {
|
||||
dst = append(dst, '%', hexCharUpper(c>>4), hexCharUpper(c&15))
|
||||
|
||||
Reference in New Issue
Block a user