https://bugzilla.wikimedia.org/show_bug.cgi?id=24323

           Summary: Forbid external links to the wiki in wikitext
           Product: MediaWiki
           Version: 1.15.4
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: Page rendering
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Novice users like to write http://mywiki.com/wiki/My_article instead of [[my
article]].  Provide a global variable, $wgForbiddenExternalLinks, that prevents
this from working.

// Array of regexps
$wgForbiddenExternalLinks = array();
$wgForbiddenExternalLinks[] = "http://mywiki.com/wiki/.*";

When a user writes http://mywiki.com/wiki/My_article or
[http://mywiki.com/wiki/My_article foo], the link itself is not rendered. A
system message Mediawiki:forbiddenexternalinks is displayed, defaulting to
"Don't use external links to yourself; use internal link syntax, [[article
name]]."

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to