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

Ensures fix_utf8mb4 has been applied to strings before saving to db #8220

Merged

Conversation

Sesquipedalian
Copy link
Member

Fixes #7776

  • Renames $fix_utf8mb4() to $smcFunc['fix_utf8mb4']() so that it can be accessed outside of reloadSettings()
  • Uses $smcFunc['fix_utf8mb4']() in Subs-Db-mysql.php to ensure four byte Unicode characters are always escaped correctly. This is safe because running $smcFunc['fix_utf8mb4']() multiple times on the same string doesn't change anything again.

Signed-off-by: Jon Stovell <jonstovell@gmail.com>
@Sesquipedalian Sesquipedalian added the Charset/Encoding UTF8 & mb4 encoding related issues label May 11, 2024
@Sesquipedalian Sesquipedalian added this to the 2.1.5 milestone May 11, 2024
@Sesquipedalian Sesquipedalian merged commit 52c90db into SimpleMachines:release-2.1 May 21, 2024
8 checks passed
@Sesquipedalian Sesquipedalian deleted the fix_utf8mb4 branch May 21, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Charset/Encoding UTF8 & mb4 encoding related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant