diff options
author | Joas Schilling <coding@schilljs.com> | 2020-09-24 14:58:44 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-09-24 15:02:30 +0200 |
commit | 6db5f53bc6be489ddea35a8da53280136699bbe1 (patch) | |
tree | d4e524eea08226c9dafaba21b4581079d95c1718 /apps/settings | |
parent | 0e2f316ece9a0f5ec5db271f3a5c50a767c76030 (diff) | |
download | nextcloud-server-6db5f53bc6be489ddea35a8da53280136699bbe1.tar.gz nextcloud-server-6db5f53bc6be489ddea35a8da53280136699bbe1.zip |
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>
Diffstat (limited to 'apps/settings')
0 files changed, 0 insertions, 0 deletions