aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/util.php5
1 files changed, 5 insertions, 0 deletions
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';