From c423ced9e2c1c658a4a4a96fb295a0bee8ef0042 Mon Sep 17 00:00:00 2001 From: blackhedd Date: Tue, 18 Apr 2006 16:27:39 +0000 Subject: [PATCH] Removed dependency on Base64, which doesn't seem to appear on all Ruby versions. --- lib/net/ldap/dataset.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/net/ldap/dataset.rb b/lib/net/ldap/dataset.rb index dd5048a..db01ce4 100644 --- a/lib/net/ldap/dataset.rb +++ b/lib/net/ldap/dataset.rb @@ -26,7 +26,6 @@ # -require 'base64' module Net @@ -61,7 +60,8 @@ class Dataset < Hash # $1 is the attribute name # $2 is a colon iff the attr-value is base-64 encoded # $' is the attr-value - attrvalue = ($2 == ":") ? Base64.decode64($') : $' + #attrvalue = ($2 == ":") ? Base64.decode64($') : $' + attrvalue = ($2 == ":") ? $'.unpack('m').shift : $' ds[dn][$1.downcase.intern] << attrvalue end