mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
BUGFIX Fixed InstallerRequirements::isApache() which didn't work if $_SERVER['SERVER_SIGNATURE'] is available for Apache
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@101733 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
f8b806f7df
commit
8efa9b3e41
15
install.php
15
install.php
@ -277,16 +277,17 @@ class InstallRequirements {
|
||||
}
|
||||
|
||||
function isApache() {
|
||||
$webserver = strip_tags(trim(@$_SERVER['SERVER_SIGNATURE']));
|
||||
if(!$webserver) {
|
||||
if(isset($_SERVER['SERVER_SOFTWARE'])) {
|
||||
if(strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false) {
|
||||
$signature = isset($_SERVER['SERVER_SIGNATURE'])
|
||||
? $_SERVER['SERVER_SIGNATURE']
|
||||
: @$_SERVER['SERVER_SOFTWARE'];
|
||||
|
||||
$signature = strip_tags(trim($signature));
|
||||
if($signature && strpos($signature, 'Apache') !== false) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function findWebserver() {
|
||||
$webserver = strip_tags(trim(@$_SERVER['SERVER_SIGNATURE']));
|
||||
|
Loading…
Reference in New Issue
Block a user