]> source.dussan.org Git - nextcloud-server.git/commit
Use `file_exists` to verify that config file exists
authorLukas Reschke <lukas@owncloud.com>
Mon, 26 Jan 2015 23:45:37 +0000 (00:45 +0100)
committerLukas Reschke <lukas@owncloud.com>
Mon, 26 Jan 2015 23:50:14 +0000 (00:50 +0100)
commit17f2cfbb9c6edeeab3e29718209eb88946335d55
tree6fc00f473007f7877dfe558ad2693fbfa97bdff0
parent5da4071c4553b5ee64799856e4db58e9484d9839
Use `file_exists` to verify that config file exists

There might be the case that `fopen($file, 'r')` returns false and thus ownCloud might believe that the config file is empty and thus potentially leading to an overwrite of the config file.

This changeset introduces `file_exists` again which was used in ownCloud 5 where no such problems where reported and should not be affected by such problems.

Ref https://github.com/owncloud/core/issues/12785#issuecomment-71548720
lib/private/config.php