mirror of
https://github.com/mrclay/minify.git
synced 2025-08-14 10:05:59 +02:00
Merge pull request #501 from glensc/minify-env
do not require SERVER_SOFTWARE being present in $server
This commit is contained in:
@@ -113,8 +113,7 @@ class Minify_Env {
|
|||||||
*/
|
*/
|
||||||
protected function computeDocRoot(array $server)
|
protected function computeDocRoot(array $server)
|
||||||
{
|
{
|
||||||
if (empty($server['SERVER_SOFTWARE'])
|
if (isset($server['SERVER_SOFTWARE']) && 0 !== strpos($server['SERVER_SOFTWARE'], 'Microsoft-IIS/')) {
|
||||||
|| 0 !== strpos($server['SERVER_SOFTWARE'], 'Microsoft-IIS/')) {
|
|
||||||
throw new InvalidArgumentException('DOCUMENT_ROOT is not provided and could not be computed');
|
throw new InvalidArgumentException('DOCUMENT_ROOT is not provided and could not be computed');
|
||||||
}
|
}
|
||||||
$docRoot = substr(
|
$docRoot = substr(
|
||||||
|
Reference in New Issue
Block a user