Skip to content

Conversation

@backportbot-nextcloud
Copy link

backport of #29695

When php version = 8, basename('§') does not bug even if LC_ALL is non-UTF-8 locale.
This cause OC_Util::isSetLocaleWorking() to skip setlocale("C.UTF-8").

Fix it by using escapeshellcmd instead of basename.

Signed-off-by: Naoto Kobayashi <[email protected]>
Using escapeshellcmd to get current locale causes error
if the function is disabled.

Add fallbacks to prevent the error.

Signed-off-by: Naoto Kobayashi <[email protected]>
@backportbot-nextcloud backportbot-nextcloud bot added this to the Nextcloud 23 milestone Nov 16, 2021
Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@PVince81 PVince81 merged commit b8318c2 into stable23 Nov 17, 2021
@PVince81 PVince81 deleted the backport/29695/stable23 branch November 17, 2021 07:10
@blizzz blizzz mentioned this pull request Nov 18, 2021
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants