diff options
author | Unknwon <joe2010xtmf@163.com> | 2015-02-08 14:39:54 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2015-02-08 14:39:54 -0500 |
commit | 3a44143b81aa050f53d5e0e2c87d4a84345cd94e (patch) | |
tree | e71e5d7ee14821c381491bb81546ddc162801018 /modules | |
parent | 9420eecb8762d53ea356eb7c683dec3f4f2cec8c (diff) | |
download | gitea-3a44143b81aa050f53d5e0e2c87d4a84345cd94e.tar.gz gitea-3a44143b81aa050f53d5e0e2c87d4a84345cd94e.zip |
modules/ans1-ber: fix LDAP UTF8 string decoding for #916
Diffstat (limited to 'modules')
-rw-r--r-- | modules/asn1-ber/ber.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/asn1-ber/ber.go b/modules/asn1-ber/ber.go index 3e99a273c6..52b9a59180 100644 --- a/modules/asn1-ber/ber.go +++ b/modules/asn1-ber/ber.go @@ -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) { |