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]>
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 requested review from come-nc and solracsf November 17, 2021 10:50
@MichaIng MichaIng merged commit b9d3f6e into stable22 Nov 17, 2021
@MichaIng MichaIng deleted the backport/29695/stable22 branch November 17, 2021 11:06
@sebastiaoLa
Copy link

@PVince81 I think this one should be on milestone 22.2.4, this change does not appear on the 22.2.3, this PR was merged after the code was released

@skjnldsv skjnldsv mentioned this pull request Jan 7, 2022
9 tasks
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.

5 participants