diff options
Diffstat (limited to 'lib/URI/ldapi.pm')
-rw-r--r-- | lib/URI/ldapi.pm | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/URI/ldapi.pm b/lib/URI/ldapi.pm new file mode 100644 index 0000000..12a0b08 --- /dev/null +++ b/lib/URI/ldapi.pm @@ -0,0 +1,29 @@ +package URI::ldapi; + +use strict; +use warnings; + +our $VERSION = "1.69"; + +use parent qw(URI::_ldap URI::_generic); + +require URI::Escape; + +sub un_path { + my $self = shift; + my $old = URI::Escape::uri_unescape($self->authority); + if (@_) { + my $p = shift; + $p =~ s/:/%3A/g; + $p =~ s/\@/%40/g; + $self->authority($p); + } + return $old; +} + +sub _nonldap_canonical { + my $self = shift; + $self->URI::_generic::canonical(@_); +} + +1; |