A
download escape.rb
Language: Ruby
LOC: 11
Project Info
ruby-activeldap - An object oriented inter...Ruby.(ruby-activeldap)
Server: Google
Type: svn
...ldap\trunk\lib\active_ldap\
   associations.rb
   attributes.rb
   base.rb
   callbacks.rb
   command.rb
   configuration.rb
   connection.rb
   distinguished_name.rb
   escape.rb
   get_text.rb
   get_text_fallback.rb
   get_text_support.rb
   helper.rb
   human_readable.rb
   ldap_error.rb
   object_class.rb
   operations.rb
   populate.rb
   schema.rb
   timeout.rb
   timeout_stub.rb
   user_password.rb
   validations.rb

module ActiveLdap
  module Escape
    module_function
    def ldap_filter_escape(str)
      str.to_s.gsub(/\*/, "**")
    end

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

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us