diff options
author | ShadowNinja <shadowninja@minetest.net> | 2022-01-31 21:11:51 -0500 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2022-04-08 14:55:21 +0100 |
commit | dae6fe91a1059751a0bde504cdf41a749234ce1a (patch) | |
tree | 8fd07c915e6d682a21aa891f9eb2e7adbc71975a /src/util/string.h | |
parent | 65fdc7ae50adaee6116ed768d9f96e8732c96b85 (diff) | |
download | hax-minetest-server-dae6fe91a1059751a0bde504cdf41a749234ce1a.tar.gz hax-minetest-server-dae6fe91a1059751a0bde504cdf41a749234ce1a.zip |
Update directory name sanitization
Only ASCII spaces have to be handles specially, and leading spaces are
also disallowed.
Diffstat (limited to '')
-rw-r--r-- | src/util/string.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/string.h b/src/util/string.h index f4ca1a7de..d8ec633ee 100644 --- a/src/util/string.h +++ b/src/util/string.h @@ -749,7 +749,7 @@ inline irr::core::stringw utf8_to_stringw(const std::string &input) /** * Sanitize the name of a new directory. This consists of two stages: * 1. Check for 'reserved filenames' that can't be used on some filesystems - * and prefix them + * and add a prefix to them * 2. Remove 'unsafe' characters from the name by replacing them with '_' */ std::string sanitizeDirName(const std::string &str, const std::string &optional_prefix); |