[Commits] [wesnoth/wesnoth] af2e16: Add sanity-checking for WML attribute/tag/variable...
GitHub
noreply at github.com
Fri Sep 18 01:44:43 UTC 2015
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: af2e16f842b6edc8899fbdaa8449a65d678693b9
https://github.com/wesnoth/wesnoth/commit/af2e16f842b6edc8899fbdaa8449a65d678693b9
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2015-09-17 (Thu, 17 Sep 2015)
Changed paths:
M src/config.cpp
M src/config.hpp
M src/serialization/parser.cpp
M src/variable_info.cpp
Log Message:
-----------
Add sanity-checking for WML attribute/tag/variable names to prevent invalid save files
- It's now an error to set an invalid variable
- If an invalid key or tag is somehow set, it won't be written to the file (with an error message in the log)
- There's an API function config::valid_id() which can be used to catch issues earlier.
More information about the Commits
mailing list