Lukas Reschke
b7f866988e
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:57:12 +01:00
..
2016-11-25 10:26:48 +01:00
2016-11-25 15:36:11 +01:00
2016-11-25 11:32:46 +01:00
2016-11-29 17:21:43 +01:00
2016-10-31 18:42:19 +01:00
2016-11-28 14:04:13 +01:00
2016-07-21 18:13:58 +02:00
2016-11-03 16:00:28 +01:00
2016-07-21 18:13:58 +02:00
2016-11-15 18:51:52 +01:00
2016-11-24 15:13:29 +01:00
2016-11-17 18:48:35 +01:00
2016-11-03 16:00:28 +01:00
2016-11-29 22:01:04 +01:00
2016-12-01 16:57:12 +01:00
2016-07-21 18:13:58 +02:00
2016-07-21 18:13:58 +02:00
2016-07-21 18:13:58 +02:00
2016-09-13 16:50:36 +02:00
2016-10-07 21:56:43 +02:00
2016-11-29 17:21:43 +01:00
2016-07-21 18:13:58 +02:00
2016-11-16 15:24:28 +01:00
2016-10-06 12:42:46 +02:00
2016-07-21 18:13:57 +02:00
2016-09-01 12:30:05 +02:00
2016-07-21 18:13:57 +02:00
2016-11-15 18:51:52 +01:00
2016-11-16 19:21:00 +01:00
2016-11-24 13:20:51 +01:00
2016-11-30 11:36:01 +01:00
2016-11-15 18:51:52 +01:00
2016-11-16 22:28:49 +01:00
2016-07-21 18:13:57 +02:00
2016-11-24 21:50:19 +01:00
2016-07-21 18:13:58 +02:00
2016-11-21 13:46:31 +01:00
2016-10-31 16:32:22 +05:30
2016-11-04 07:41:35 +01:00
2016-11-30 09:21:58 +01:00
2016-07-21 18:13:57 +02:00
2016-07-21 18:13:57 +02:00
2016-11-24 11:57:10 +01:00
2016-09-27 14:52:22 +02:00
2016-11-27 14:03:28 +01:00
2016-11-16 18:52:49 +01:00
2016-07-21 18:13:58 +02:00
2016-07-21 18:13:57 +02:00
2016-10-24 11:27:27 +02:00
2016-10-05 11:00:16 +02:00
2016-08-15 20:37:19 +02:00
2016-07-21 18:13:58 +02:00
2016-07-21 18:13:57 +02:00
2016-07-21 18:13:57 +02:00
2016-07-21 18:13:57 +02:00
2016-07-21 18:13:57 +02:00
2016-07-21 18:13:57 +02:00
2016-07-21 18:13:57 +02:00
2016-11-28 11:34:23 +01:00
2016-07-21 18:13:57 +02:00
2016-11-11 18:53:26 +01:00
2016-10-25 14:44:27 +02:00
2016-10-07 16:23:05 +02:00
2016-07-21 18:13:57 +02:00
2016-07-21 18:13:57 +02:00
2016-07-21 18:13:57 +02:00
2016-07-21 18:13:58 +02:00
2016-07-21 18:13:57 +02:00
2016-11-03 14:00:32 +01:00
2016-11-18 20:45:29 +01:00
2016-09-09 13:53:06 +02:00
2016-07-21 18:13:58 +02:00
2016-11-30 11:36:01 +01:00
2016-07-21 18:13:57 +02:00
2016-07-21 18:13:58 +02:00
2016-11-30 10:39:21 +01:00
2016-08-22 14:25:43 +02:00
2016-07-21 18:13:57 +02:00
2016-07-21 18:13:58 +02:00
2016-11-14 14:50:10 +01:00
2016-11-28 14:26:30 +01:00
2016-07-21 18:13:57 +02:00
2016-07-21 18:13:57 +02:00
2016-07-21 18:13:57 +02:00
2016-07-21 18:13:58 +02:00
2016-11-18 11:57:16 +01:00
2016-07-21 18:13:58 +02:00
2016-11-24 16:37:57 +01:00
2016-11-21 13:13:53 +01:00