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 missing formspec escape #34

Merged
merged 2 commits into from
Jan 23, 2024
Merged

fix missing formspec escape #34

merged 2 commits into from
Jan 23, 2024

Conversation

a-tour-ist
Copy link
Contributor

The command field in the craftable command block doesn't formspec escape the input.
(try ]box[0,0;1,1;red as command).

@Niklp09
Copy link
Member

Niklp09 commented Jan 22, 2024

Should the fs_escape not be done in the formspec and not saved as metadata?

@SmallJoker
Copy link
Member

Indeed. Metadata does not need escaping. Escape the value where it is actually used - namely in local function initialize_data(meta).

@a-tour-ist
Copy link
Contributor Author

Sorry, didn't realize that the escaping there is causing side effects. It should be at the correct place now.

Copy link
Member

@Niklp09 Niklp09 left a comment

Choose a reason for hiding this comment

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

There shouldn't be any objections. I'll merge this later

@Niklp09 Niklp09 merged commit b24feb4 into minetest-mods:master Jan 23, 2024
1 check 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