Module: ActiveLdap::Escape — activeldap - ActiveLdap

Module: ActiveLdap::Escape

Defined in:
lib/active_ldap/escape.rb

Class Method Summary (collapse)

Class Method Details

+ (Object) ldap_filter_escape(str)



4
5
6
# File 'lib/active_ldap/escape.rb', line 4

def ldap_filter_escape(str)
  str.to_s.gsub(/\*/, "**")
end

+ (Object) ldap_filter_unescape(str)



8
9
10
# File 'lib/active_ldap/escape.rb', line 8

def ldap_filter_unescape(str)
  str.to_s.gsub(/\*\*/, "*")
end