nextcloud/lib/private/Files
Lukas Reschke 072794d78d
[stable10] Prevent endless loop in \OC\Files\View::createParentDirectories
\OC\Files\View::createParentDirectories was previously prone to an endless loop. If a path such as /foo/existingfile.txt/bar/foo was passed and existingfile.txt existed in foo the loop was never left and running until the PHP process timed out.

This commit changes the logic to a foreach loop over an array and additionally additional error handling using is_file.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-01 16:53:26 +01:00
..
Cache Adding test case for getPathById including a jailed cache where root is just empty 2016-08-10 11:29:11 +02:00
Config Prevent error with orphaned shares when updating user mount cache 2016-08-30 19:45:22 +02:00
Mount prevent infinite recursion while getting storage from mount 2016-08-23 13:59:01 +02:00
Node make AvatarManager use LazyRootFolder, fixes #1251 2016-10-12 14:08:12 +02:00
ObjectStore Run the license script 2016-07-22 11:40:41 +02:00
Storage Only use realpath for real directories (#26060) 2016-09-27 00:15:27 +02:00
Stream Run the license script 2016-07-22 11:40:41 +02:00
Type [stable9.1] Fix mimetype detection inside hidden folders (#26138) (#26151) 2016-09-26 11:33:13 +02:00
Utils Store the shared propagator instance 2016-08-10 10:59:56 +02:00
FileInfo.php Run the license script 2016-07-22 11:40:41 +02:00
Filesystem.php Hack to prevent warning for read-only wrapper in public links 2016-11-17 17:00:49 +01:00
View.php [stable10] Prevent endless loop in \OC\Files\View::createParentDirectories 2016-12-01 16:53:26 +01:00