File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -694,7 +694,7 @@ def parse_filter_branch(scanner)
694
694
scanner . scan ( /\s */ )
695
695
if op = scanner . scan ( /<=|>=|!=|:=|=/ )
696
696
scanner . scan ( /\s */ )
697
- if value = scanner . scan ( /(?:[-\w *.+@=,#\$ %&!\s ]|\\ [a-fA-F\d ]{2})+/ )
697
+ if value = scanner . scan ( /(?:[-\w *.+@=,#\$ %&!' \s ]|\\ [a-fA-F\d ]{2})+/ )
698
698
# 20100313 AZ: Assumes that "(uid=george*)" is the same as
699
699
# "(uid=george* )". The standard doesn't specify, but I can find
700
700
# no examples that suggest otherwise.
Original file line number Diff line number Diff line change 44
44
end
45
45
end
46
46
end
47
+ describe "<- .construct" do
48
+ it "should accept apostrophes in filters (regression)" do
49
+ Net ::LDAP ::Filter . construct ( "uid=O'Keefe" ) . to_rfc2254 . should == "(uid=O'Keefe)"
50
+ end
51
+ end
47
52
48
53
end
You can’t perform that action at this time.
0 commit comments