Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Commit 6efc5e0

Browse files
James StenhouseJames Stenhouse
authored andcommitted
fix spaces in returned ObjectName
1 parent e54555a commit 6efc5e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/messages/search_entry.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ SearchEntry.prototype._parse = function (ber) {
171171
SearchEntry.prototype._toBer = function (ber) {
172172
assert.ok(ber)
173173

174-
ber.writeString(this.objectName.toString())
174+
var formattedObjectName = this.objectName.format({ skipSpace: true })
175+
ber.writeString(formattedObjectName)
175176
ber.startSequence()
176177
this.attributes.forEach(function (a) {
177178
// This may or may not be an attribute

0 commit comments

Comments
 (0)