Browse Source

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

for-closed-social
Unknwon 9 years ago
parent
commit
3a44143b81
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      modules/asn1-ber/ber.go

+ 4
- 4
modules/asn1-ber/ber.go 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) {

Loading…
Cancel
Save