diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2017-06-30 22:56:07 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2017-06-30 22:56:07 +0200 |
commit | ef81051f7d0a18709ce182bd706c1e4c5fc2a6e9 (patch) | |
tree | 80e106b23f88165a490df2053666ed7d629db040 /objects/properties.go | |
parent | 2a0620b4fc7e33066998d6fe709625c009a9fe28 (diff) | |
download | petrific-ef81051f7d0a18709ce182bd706c1e4c5fc2a6e9.tar.gz petrific-ef81051f7d0a18709ce182bd706c1e4c5fc2a6e9.tar.bz2 petrific-ef81051f7d0a18709ce182bd706c1e4c5fc2a6e9.zip |
Use ACLs in tree objects
Diffstat (limited to 'objects/properties.go')
-rw-r--r-- | objects/properties.go | 4 |
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}) |