👁 查看:ldapi.pm
路径:/usr/local/share/perl5/5.32/URI/ldapi.pm
大小:469 B · 修改:2026-09-03 22:49:40 · 权限:0444 · 只读
package URI::ldapi;

use strict;
use warnings;

our $VERSION = '5.37';

use parent qw(URI::_ldap URI::_generic);

use 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;