nextcloud/apps/dav/lib
Joas Schilling 3fe6b5b5f8 Fix numeric folders throwing on markDirty
TypeError: strpos() expects parameter 1 to be string, int given

The problem is that in cacheNode() we strip of any slashes, so
a folder "0/" will be trimmed to "0" and be used as an array key.
Since PHP automatically casts numeric array keys to integers,
you afterwards get $nodePath as int(0). Since it's now a number,
the strpos() function does not accept it anymore. Simply casting
$nodePath to a string again in the foreach solves the issue

Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-09-25 13:14:58 +00:00
..
AppInfo Update license headers for 19 2020-04-29 11:57:22 +02:00
Avatars Update license headers for 19 2020-04-29 11:57:22 +02:00
BackgroundJob Update license headers for 19 2020-04-29 11:57:22 +02:00
CalDAV Add ability to limit sharing to owner 2020-08-20 12:51:09 +00:00
CardDAV Short php syntax 2020-08-06 12:43:47 +02:00
Command Update license headers for 19 2020-04-29 11:57:22 +02:00
Comments Update license headers for 19 2020-04-29 11:57:22 +02:00
Connector Fix numeric folders throwing on markDirty 2020-09-25 13:14:58 +00:00
Controller Update license headers for 19 2020-04-29 11:57:22 +02:00
DAV Add ability to limit sharing to owner 2020-08-20 12:51:09 +00:00
Db Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Direct Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Exception Update license headers 2019-12-05 15:38:45 +01:00
Files Update license headers for 19 2020-04-29 11:57:22 +02:00
Migration Update license headers for 19 2020-04-29 11:57:22 +02:00
Provisioning/Apple Update license headers for 19 2020-04-29 11:57:22 +02:00
Settings Update the license headers for Nextcloud 19 2020-03-31 14:52:54 +02:00
Storage Fix owner on publicownerwrapper 2020-05-01 10:50:26 +02:00
SystemTag Update license headers for 19 2020-04-29 11:57:22 +02:00
Traits Update license headers for 19 2020-04-29 11:57:22 +02:00
Upload Return proper status when file didn't exist before 2020-08-13 18:55:06 +00:00
Capabilities.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
HookManager.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
RootCollection.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Server.php Add ability to limit sharing to owner 2020-08-20 12:51:09 +00:00