summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2015-02-08 14:39:54 -0500
committerUnknwon <joe2010xtmf@163.com>2015-02-08 14:39:54 -0500
commit3a44143b81aa050f53d5e0e2c87d4a84345cd94e (patch)
treee71e5d7ee14821c381491bb81546ddc162801018 /modules
parent9420eecb8762d53ea356eb7c683dec3f4f2cec8c (diff)
downloadgitea-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.go8
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) {