mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
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:
parent
c7ad563f55
commit
ce174f776f
@ -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
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user