]> source.dussan.org Git - nextcloud-server.git/commit
Simplify isValidPath and add unit tests
authorLukas Reschke <lukas@owncloud.com>
Fri, 9 Jan 2015 23:06:30 +0000 (00:06 +0100)
committerLukas Reschke <lukas@owncloud.com>
Fri, 9 Jan 2015 23:40:21 +0000 (00:40 +0100)
commit05615bfd473f1eafa4ec253779568ab044467ceb
tree3c850b8089684a62a988b3c725477ab6ba998e85
parent59a1d16d0fd3d67833bfb728ce03cebc7fec4043
Simplify isValidPath and add unit tests

The check for invalid paths is actually over-complicated and performed twice resulting in a performance penalty. Additionally, I decided to add unit-tests to that function.

Part of https://github.com/owncloud/core/issues/13221
lib/private/files/filesystem.php
tests/lib/files/filesystem.php