diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-02-18 11:45:55 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-02-18 11:45:55 +0000 |
commit | 4564519a560a69e34291ba6062a013500ee74e5d (patch) | |
tree | f85e9dcc3015d517c224ab23f545683e0d2b5b8a | |
parent | 5a241fd12e96680721725fcc633963e1df85392a (diff) | |
download | redmine-4564519a560a69e34291ba6062a013500ee74e5d.tar.gz redmine-4564519a560a69e34291ba6062a013500ee74e5d.zip |
missing parenthesis added in filter.rb (net-ldap)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@252 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | vendor/plugins/ruby-net-ldap-0.0.4/lib/net/ldap/filter.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/vendor/plugins/ruby-net-ldap-0.0.4/lib/net/ldap/filter.rb b/vendor/plugins/ruby-net-ldap-0.0.4/lib/net/ldap/filter.rb index 38944a710..4d06c26f3 100644 --- a/vendor/plugins/ruby-net-ldap-0.0.4/lib/net/ldap/filter.rb +++ b/vendor/plugins/ruby-net-ldap-0.0.4/lib/net/ldap/filter.rb @@ -307,8 +307,8 @@ class FilterParser #:nodoc: end def parse_paren_expression scanner - if scanner.scan /\s*\(\s*/ - b = if scanner.scan /\s*\&\s*/ + if scanner.scan(/\s*\(\s*/) + b = if scanner.scan(/\s*\&\s*/) a = nil branches = [] while br = parse_paren_expression(scanner) @@ -321,7 +321,7 @@ class FilterParser #:nodoc: end a end - elsif scanner.scan /\s*\|\s*/ + elsif scanner.scan(/\s*\|\s*/) # TODO: DRY! a = nil branches = [] @@ -335,7 +335,7 @@ class FilterParser #:nodoc: end a end - elsif scanner.scan /\s*\!\s*/ + elsif scanner.scan(/\s*\!\s*/) br = parse_paren_expression(scanner) if br ~ br @@ -353,11 +353,11 @@ class FilterParser #:nodoc: # Added a greatly-augmented filter contributed by Andre Nathan # for detecting special characters in values. (15Aug06) def parse_filter_branch scanner - scanner.scan /\s*/ + scanner.scan(/\s*/) if token = scanner.scan( /[\w\-_]+/ ) - scanner.scan /\s*/ + scanner.scan(/\s*/) if op = scanner.scan( /\=|\<\=|\<|\>\=|\>|\!\=/ ) - scanner.scan /\s*/ + scanner.scan(/\s*/) #if value = scanner.scan( /[\w\*\.]+/ ) (ORG) if value = scanner.scan( /[\w\*\.\+\-@=#\$%&!]+/ ) case op |