Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

RFC2253 has the examples in upper case, we do the same.

  • Loading branch information...
commit 2a6533fbb31223aa3f218fefd6ad3f3f7fb2ff80 1 parent 6493ede
Dave Lambley authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Net/LDAP/Util.pm
View
2  lib/Net/LDAP/Util.pm
@@ -567,7 +567,7 @@ my @values = @_;
# required by RFC2253, but as performed in the examples in section 5.
map { $_=encode('utf-8', $_);
$_ =~ s/([\\",=+<>#;])/\\$1/og;
- $_ =~ s/([^\x20-\x7f])/"\\".unpack("H2",$1)/oge;
+ $_ =~ s/([^\x20-\x7f])/"\\".uc(unpack("H2",$1))/oge;
$_ =~ s/(^\s+|\s+$)/"\\20" x length($1)/oge; } @values;
return(wantarray ? @values : $values[0]);
Please sign in to comment.
Something went wrong with that request. Please try again.