init III
This commit is contained in:
30
Perl OTRS/Kernel/cpan-lib/URI/ldapi.pm
Normal file
30
Perl OTRS/Kernel/cpan-lib/URI/ldapi.pm
Normal file
@@ -0,0 +1,30 @@
|
||||
package URI::ldapi;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
our $VERSION = '1.71';
|
||||
$VERSION = eval $VERSION;
|
||||
|
||||
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;
|
||||
Reference in New Issue
Block a user