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

Fix: Ensure utf-8 encoding & path cleanup. #292

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

GabuTheDev
Copy link
Contributor

The function cleanPath sanitizes the paths passed, removing special chars (that would never be in a path, unless incorrect readout), trimming trailling spaces (similar to #290 ) and using utf-8 as encoding (hopefully fixing this issue)

@GabuTheDev GabuTheDev changed the title Fix: Ensure UTF-8 Encoding & Path Cleanup. Fix: Ensure utf-8 encoding & path cleanup. Feb 1, 2025
SongsFolder: global.songsFolder,
Folder: menu.folder,
Path: menu.filename
SongsFolder: cleanPath(global.songsFolder),
Copy link
Member

Choose a reason for hiding this comment

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

Didn't you clean it in osuInstance/lazerInstance ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Didn't you clean it in osuInstance/lazerInstance ?

wanted to be sure.

@GabuTheDev GabuTheDev requested a review from KotRikD February 1, 2025 13:43
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