diff options
author | Robin <robin@Amaya.(none)> | 2010-05-24 20:10:36 +0200 |
---|---|---|
committer | Robin <robin@Amaya.(none)> | 2010-05-24 20:10:36 +0200 |
commit | 15a3949811e1eb92a90151554eee98d6f7d3f3dd (patch) | |
tree | c8eac1244006d54ac3968ebc6efca8f497b1fe17 /inc/templates/adminform.php | |
parent | cd1ffd912b092179c2cb5a6507e1894477f3c907 (diff) | |
download | nextcloud-server-15a3949811e1eb92a90151554eee98d6f7d3f3dd.tar.gz nextcloud-server-15a3949811e1eb92a90151554eee98d6f7d3f3dd.zip |
use proper file mode when testing config file for write premissions
Diffstat (limited to 'inc/templates/adminform.php')
-rwxr-xr-x | inc/templates/adminform.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/templates/adminform.php b/inc/templates/adminform.php index ef45bd9ee26..be63c0cc6cc 100755 --- a/inc/templates/adminform.php +++ b/inc/templates/adminform.php @@ -4,7 +4,7 @@ global $CONFIG_ENABLEBACKUP; global $CONFIG_DATADIRECTORY_ROOT; global $CONFIG_BACKUPDIRECTORY; global $CONFIG_ERROR; -$f=@fopen($SERVERROOT.'/config/config.php','r+'); +$f=@fopen($SERVERROOT.'/config/config.php','a+'); if(!$f) die('Error: Config file (config/config.php) is not writable for the webserver.<br/>'); @fclose($f); if(!isset($fillDB)) $fillDB=true; |