nextcloud/apps/dav/lib/Connector
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
..
Sabre Fix numeric folders throwing on markDirty 2020-09-25 13:14:58 +00:00
LegacyDAVACL.php Update license headers for 19 2020-04-29 11:57:22 +02:00
PublicAuth.php Update license headers for 19 2020-04-29 11:57:22 +02:00