From: Thomas Müller Date: Thu, 8 Jan 2015 08:13:18 +0000 (+0100) Subject: check for working htaccess will result in a dead lock because the server is blocking... X-Git-Tag: v8.0.0alpha2~30^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=296a8520639ebd69212a38e308b307a8c134ef4f;p=nextcloud-server.git check for working htaccess will result in a dead lock because the server is blocking the request to itself - fixes #13153 --- diff --git a/lib/private/util.php b/lib/private/util.php index 53c9fbfd56b..3178639b02e 100644 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -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';