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 relative paths with .. in file selection #1850

Merged
merged 2 commits into from
Dec 14, 2021

Conversation

mrkubax10
Copy link
Member

Fixes problem when user goes one directory up and selects file when using basedir

@Zwatotem
Copy link
Member

I know you asked about if it breaks something already, but I wasn't and still am not sure, whether it can affect some built-in levels or add-ons (especially the latter, since they tend to use a lot of customization). I would allow relative links, provided they are inside supertux home directory or inside basedir.

@mrkubax10 mrkubax10 changed the title Make path not relative to basedir in file selection Fix relative paths with .. in file selection Oct 16, 2021
@tobbi tobbi merged commit db0689f into SuperTux:master Dec 14, 2021
@mrkubax10 mrkubax10 deleted the fix_wrong_relative_folders branch December 14, 2021 19:00
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.

None yet

3 participants