aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-12-01 16:52:12 +0100
committerLukas Reschke <lukas@statuscode.ch>2016-12-01 16:57:12 +0100
commitb7f866988ee0c57045d58157130fbcb50e0d9e1b (patch)
tree7558308c40ffe1ba20019a4582d25c8bd9ba8a3a /core/js/js.js
parent5cea7f35e124ea7a6b8352a1d05c00069e8814ae (diff)
downloadnextcloud-server-b7f866988ee0c57045d58157130fbcb50e0d9e1b.tar.gz
nextcloud-server-b7f866988ee0c57045d58157130fbcb50e0d9e1b.zip
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>
Diffstat (limited to 'core/js/js.js')
0 files changed, 0 insertions, 0 deletions