diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-07-25 01:06:42 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-07-25 01:06:42 +0000 |
commit | 9165b237ad8fae18b36d4d40d6e2ccfde7b136c7 (patch) | |
tree | 06530ddd6baa7e251c58b6b6729ed458da61a681 /lib/URI/ldapi.pm | |
download | URI-tarball-9165b237ad8fae18b36d4d40d6e2ccfde7b136c7.tar.gz |
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; |