Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-24 10:46:10 +01:00

modules/ans1-ber: fix LDAP UTF8 string decoding for #916

This commit is contained in:
Unknwon 2015-02-08 14:39:54 -05:00
parent 9420eecb87
commit 3a44143b81

View file

@ -256,11 +256,11 @@ func ReadPacket(reader io.Reader) (*Packet, error) {
}
func DecodeString(data []byte) (ret string) {
for _, c := range data {
ret += fmt.Sprintf("%c", c)
}
// for _, c := range data {
// ret += fmt.Sprintf("%c", c)
// }
return
return string(data)
}
func DecodeInteger(data []byte) (ret uint64) {