Module: ActiveLdap::Escape

Defined in:
lib/active_ldap/escape.rb

Class Method Summary collapse

Class Method Details

.ldap_filter_escape(str) ⇒ Object



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

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

.ldap_filter_unescape(str) ⇒ Object



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

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