MDL-19460 wiki - disable by default undocumented interwiki links. Can be ebabled with $CFG->wiki_allow_interwiki = true; merged from 19_STABLE

This commit is contained in:
stronk7 2009-06-15 15:11:20 +00:00
parent c7ad563f55
commit ce174f776f

View File

@ -438,7 +438,15 @@
"url" => "",
# "self" => "this",
"this" => EWIKI_SCRIPT, # better was absolute _URL to ewiki wrapper
"jump" => "",
"jump" => ""
));
// BEGIN MOODLE CHANGES - disable interwiki liks by default
// can be enabled with $CFG->wiki_allow_interwiki = true . MDL-19460
global $CFG;
if (!empty($CFG->wiki_allow_interwiki)) {
$ewiki_config["interwiki"] = @array_merge(
$ewiki_config["interwiki"],
array (
"ErfurtWiki" => "http://erfurtwiki.sourceforge.net/?id=",
"InterWiki" => "InterWikiSearch",
"InterWikiSearch" => "http://sunir.org/apps/meta.pl?",
@ -457,8 +465,10 @@
"MoinMoin" => "http://www.purl.net/wiki/moin/",
"Google" => "http://google.com/search?q=",
"ISBN" => "http://www.amazon.com/exec/obidos/ISBN=",
"icq" => "http://www.icq.com/",
"icq" => "http://www.icq.com/"
));
}
// END MOODLE CHANGES