diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-02-07 23:29:26 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-02-07 23:29:26 +0100 |
commit | 8ad3fc89bed6b52b0f40095834b3b61b36d7c71c (patch) | |
tree | fbb1d0ecf7f9ce6241c9265431686f89bd0014df /lib/private/util.php | |
parent | f830ad0e47df14e821161c49ab1b52694f74912a (diff) | |
parent | 91254c304d454b6f7977037dbd5dd2db5e00ff9f (diff) | |
download | nextcloud-server-8ad3fc89bed6b52b0f40095834b3b61b36d7c71c.tar.gz nextcloud-server-8ad3fc89bed6b52b0f40095834b3b61b36d7c71c.zip |
Merge branch 'master' into quota-space-root
Diffstat (limited to 'lib/private/util.php')
-rwxr-xr-x | lib/private/util.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/private/util.php b/lib/private/util.php index 66a770a33dc..b16c5980d75 100755 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -788,8 +788,12 @@ class OC_Util { } $fp = @fopen($testFile, 'w'); - @fwrite($fp, $testContent); - @fclose($fp); + if (!$fp) { + throw new OC\HintException('Can\'t create test file to check for working .htaccess file.', + 'Make sure it is possible for the webserver to write to '.$testFile); + } + fwrite($fp, $testContent); + fclose($fp); // accessing the file via http $url = OC_Helper::makeURLAbsolute(OC::$WEBROOT.'/data'.$fileName); |