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

Profile fixes #4377

Merged
merged 3 commits into from
Sep 30, 2024
Merged

Conversation

evertton
Copy link
Contributor

  • Fixed update user language, when underline is a character in language selector

    • When the language "Portuguese (Brazil)" was selected, the prevent LFI regular expression removed the underline character, so whenever the user chose this language they ended up receiving English as a fallback.

      echo $inputData['language']; // portuguese_br
      
      // Prevent LFI.
      $inputData['language'] = preg_replace('/[^a-z]/', "", $inputData['language']);
      
      echo $inputData['language']; // portuguesebr
  • Fixes timezone selection display in profile

    • The way the logic was before, the system timezone was always selected. When selecting "America/Maceio" timezone in the profile and saving, the next time it was displayed, "UTC" appeared again. It was necessary to choose the preferred timezone whenever making any edit.

pages/profile.php Outdated Show resolved Hide resolved
@nilsteampassnet nilsteampassnet merged commit 1ffe4f7 into nilsteampassnet:master Sep 30, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants