aboutsummaryrefslogtreecommitdiff
path: root/objects/properties.go
diff options
context:
space:
mode:
Diffstat (limited to 'objects/properties.go')
-rw-r--r--objects/properties.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/objects/properties.go b/objects/properties.go
index 6b4acc1..8c92932 100644
--- a/objects/properties.go
+++ b/objects/properties.go
@@ -11,14 +11,14 @@ import (
// (only the characters [a-zA-Z0-9.:_-] are allowed, values are ordered by their key)
type properties map[string]string
-// escapePropertyString escapes all bytes not in [a-zA-Z0-9.:_-] as %XX, where XX represents the hexadecimal value of the byte.
+// escapePropertyString escapes all bytes not in [a-zA-Z0-9.,:_-] as %XX, where XX represents the hexadecimal value of the byte.
// Compatible with URL query strings
func escapePropertyString(s string) []byte {
out := []byte{}
esc := []byte("%XX")
for _, b := range []byte(s) {
- if (b >= 'a' && b <= 'z') || (b >= 'A' && b <= 'Z') || (b >= '0' && b <= '9') || b == '.' || b == ':' || b == '_' || b == '-' {
+ if (b >= 'a' && b <= 'z') || (b >= 'A' && b <= 'Z') || (b >= '0' && b <= '9') || b == '.' || b == ',' || b == ':' || b == '_' || b == '-' {
out = append(out, b)
} else {
hex.Encode(esc[1:], []byte{b})