Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable24] Appropriate length check in Notification.php #35113

Merged
merged 1 commit into from
Nov 13, 2022

Conversation

backportbot-nextcloud[bot]
Copy link

backport of #35015

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>
@szaimen szaimen added the 3. to review Waiting for reviews label Nov 11, 2022
@szaimen szaimen requested review from a team, ArtificialOwl, blizzz and juliusknorr and removed request for a team November 11, 2022 23:44
@szaimen szaimen merged commit 80040cb into stable24 Nov 13, 2022
@szaimen szaimen deleted the backport/35015/stable24 branch November 13, 2022 17:26
@blizzz blizzz mentioned this pull request Nov 21, 2022
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants