Merge pull request #13166 from owncloud/support-setup-in-php-dev-server

check for working htaccess will result in a dead lock because the server...
This commit is contained in:
Morris Jobke 2015-01-08 11:08:24 +01:00
commit 14e534e933
1 changed files with 5 additions and 0 deletions

View File

@ -1031,6 +1031,11 @@ class OC_Util {
return true;
}
// php dev server does not support htaccess
if (php_sapi_name() === 'cli-server') {
return false;
}
// testdata
$fileName = '/htaccesstest.txt';
$testContent = 'testcontent';