mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Merge branch 'w12_MDL-32043_m23_webserver' of git://github.com/skodak/moodle
This commit is contained in:
commit
e2edc82058
@ -853,7 +853,11 @@ function setup_get_remote_url() {
|
||||
//obscure name found on some servers - this is definitely not supported
|
||||
$rurl['fullpath'] = $_SERVER['REQUEST_URI']; // TODO: verify this is always properly encoded
|
||||
|
||||
} else {
|
||||
} else if (strpos($_SERVER['SERVER_SOFTWARE'], 'PHP') === 0) {
|
||||
// built-in PHP Development Server
|
||||
$rurl['fullpath'] = $_SERVER['REQUEST_URI'];
|
||||
|
||||
} else {
|
||||
throw new moodle_exception('unsupportedwebserver', 'error', '', $_SERVER['SERVER_SOFTWARE']);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user