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)
694694 scanner . scan ( /\s */ )
695695 if op = scanner . scan ( /<=|>=|!=|:=|=/ )
696696 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})+/ )
698698 # 20100313 AZ: Assumes that "(uid=george*)" is the same as
699699 # "(uid=george* )". The standard doesn't specify, but I can find
700700 # no examples that suggest otherwise.
Original file line number Diff line number Diff line change 4444 end
4545 end
4646 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
4752
4853end
You can’t perform that action at this time.
0 commit comments