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

add check for absolute directories to world copy script #2939

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

hpf3
Copy link
Contributor

@hpf3 hpf3 commented Jul 1, 2024

noticed that the "copy existing world" ability does not check if a level path is absolute, and appends it to /data/, added simple regex ( ^/.*$ ) check to see if LEVEL is absolute

Copy link
Owner

@itzg itzg left a comment

Choose a reason for hiding this comment

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

Thanks!

@itzg itzg added the bug label Jul 1, 2024
@itzg itzg merged commit 50caaf9 into itzg:master Jul 1, 2024
5 of 9 checks passed
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.

setting LEVEL to an absolute path causes WORLD (existing world copy) to break
2 participants