]> source.dussan.org Git - nextcloud-server.git/commitdiff
check for working htaccess will result in a dead lock because the server is blocking...
authorThomas Müller <thomas.mueller@tmit.eu>
Thu, 8 Jan 2015 08:13:18 +0000 (09:13 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Thu, 8 Jan 2015 08:13:18 +0000 (09:13 +0100)
lib/private/util.php

index 53c9fbfd56bfbb41f4102a278818ecf579559716..3178639b02e33d0dcaccb92bb8b74395729b2976 100644 (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';