[Rt-commit] rt branch, 4.4/externalauth-hyperlink, created. rt-4.4.0-112-g6270f13

Shawn Moore shawn at bestpractical.com
Tue May 10 15:22:45 EDT 2016


The branch, 4.4/externalauth-hyperlink has been created
        at  6270f1334a9fdb5ba67a08ce9573f92d0f407c8b (commit)

- Log -----------------------------------------------------------------
commit 6270f1334a9fdb5ba67a08ce9573f92d0f407c8b
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Tue May 10 15:13:15 2016 -0400

    L<RT::Authen::ExternalAuth> shouldn't link to metacpan
    
    Now that RT::Authen::ExternalAuth is part of core, documentation
    hyperlinks (e.g. L<RT::Authen::ExternalAuth>) for modules in that
    namespace should be local, rather than pointing to metacpan. Any other
    L<RT::Authen::*> links should continue pointing to metacpan.
    
    This change fixes several hyperlinks within
    lib/RT/Authen/ExternalAuth.pm as well as in docs/authentication.pod.
    
    L<RT::LDAPImport> does not need a similar fix since its namespace was
    changed from L<RT::Extension::LDAPImport> as part of coring.
    
    Fixes: I#31957

diff --git a/lib/RT/Pod/HTML.pm b/lib/RT/Pod/HTML.pm
index d38a882..8cdcc7b 100644
--- a/lib/RT/Pod/HTML.pm
+++ b/lib/RT/Pod/HTML.pm
@@ -129,7 +129,7 @@ sub resolve_local_link {
         : '';
 
     my $local;
-    if ($name =~ /^RT(::(?!Extension::|Authen::)|$)/ or $self->batch->found($name)) {
+    if ($name =~ /^RT(::(?!Extension::|Authen::(?!ExternalAuth))|$)/ or $self->batch->found($name)) {
         $local = join "/",
                   map { $self->encode_entities($_) }
                 split /::/, $name;

-----------------------------------------------------------------------


More information about the rt-commit mailing list