Merge branch 'w12_MDL-32043_m23_webserver' of git://github.com/skodak/moodle

This commit is contained in:
Sam Hemelryk 2012-03-20 12:12:44 +13:00
commit e2edc82058

View File

@ -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']);
}