mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-17 05:48:43 +02:00
Issue #88 - Injection should be prevented in settings even if symlinks are used.
This commit is contained in:
@@ -187,8 +187,8 @@ class outagelib {
|
||||
}
|
||||
self::$injectcalled = true;
|
||||
|
||||
// Do not inject into admin/settings.php, see Issue #65.
|
||||
if ($_SERVER['SCRIPT_FILENAME'] === $CFG->dirroot.'/admin/settings.php') {
|
||||
// Do not inject into admin/settings.php.
|
||||
if ($_SERVER['SCRIPT_NAME'] == '/'.$CFG->admin.'/settings.php') {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user