]> source.dussan.org Git - nextcloud-server.git/commit
Appropriate length check in Notification.php 35113/head
authornatoponen <57988162+natoponen@users.noreply.github.com>
Tue, 8 Nov 2022 07:45:58 +0000 (10:45 +0300)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Fri, 11 Nov 2022 20:09:24 +0000 (20:09 +0000)
commitd4f9b8286afa3787b5ac0240198667b2376a3521
tree48d150289f650c9a16727efb221db3fbedfb6ed0
parent303ede8c8c1bfdad374d9f389a8fc7b57accdf29
Appropriate length check in Notification.php

There is an issue(bug) when using UTF-8 symbols in any method, which checks the length of string as `isset($id[64])`. You can set only 32 UTF-8 symbols because they are 2 byte, and this "array" check seems inapropriate in this case, as it throws unexpected exceptions.

Signed-off-by: natoponen <57988162+natoponen@users.noreply.github.com>
lib/private/Notification/Notification.php