From 001608e3a01f3af1955525c0bda25abc68163591 Mon Sep 17 00:00:00 2001 From: Jamstah Date: Sun, 20 Mar 2011 20:32:53 +0000 Subject: [PATCH] Add to history re escaping in filters. Remove extra UTF-8 header. --- History.rdoc | 4 ++++ lib/net/ldap/filter.rb | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/History.rdoc b/History.rdoc index 5526209..7ea7215 100644 --- a/History.rdoc +++ b/History.rdoc @@ -10,6 +10,10 @@ prevent those operators from having problems with the private new. * Added Filter.present and Filter.present? aliases for the method previously only known as Filter.pres. + * Added Filter.escape to escape strings for use in filters, based on + rfc4515. + * Added Filter.equals, Filter.begins, Filter.ends and Filter.contains, + which automatically escape input for use in a filter string. * Cleaned up Net::LDAP::Filter::FilterParser to handle branches better. Fixed some of the regular expressions to be more canonically defined. * Correctly handles single-branch branches. diff --git a/lib/net/ldap/filter.rb b/lib/net/ldap/filter.rb index 2e1a23b..660684f 100644 --- a/lib/net/ldap/filter.rb +++ b/lib/net/ldap/filter.rb @@ -1,5 +1,4 @@ # -*- ruby encoding: utf-8 -*- -# -*- ruby encoding: utf-8 -*- ## # Class Net::LDAP::Filter is used to constrain LDAP searches. An object of