]> source.dussan.org Git - nextcloud-server.git/commit
Do not use realpath() on includes.
authorAndreas Fischer <bantu@owncloud.com>
Wed, 21 Aug 2013 08:52:22 +0000 (10:52 +0200)
committerAndreas Fischer <bantu@owncloud.com>
Wed, 21 Aug 2013 08:52:22 +0000 (10:52 +0200)
commit9753e44ac2352d181417dfea2781f5d4df5f7b47
tree569ae0882448c9224aefd6041b0a00dbc97bd102
parent12f4494de02457d51004ca6a82c1b2160189819f
Do not use realpath() on includes.

If the file does not exist, realpath() returns false and "include false;"
produces "Failed opening '' for inclusion" which is a useless error message.

'include' works just fine with symlinks, "./" and "../".
apps/files_encryption/lib/crypt.php
apps/files_encryption/tests/crypt.php
apps/files_encryption/tests/keymanager.php
apps/files_encryption/tests/share.php
apps/files_encryption/tests/stream.php
apps/files_encryption/tests/trashbin.php
apps/files_encryption/tests/util.php
apps/files_encryption/tests/webdav.php