diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-27 22:20:31 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-27 22:20:31 +0100 |
| commit | 1b6897ef91e7a82319a295d5f30a796bdc3a6db1 (patch) | |
| tree | 9446496c280bcf7974cf8a8ec78be27b809ec81c | |
| parent | 01099fc97c23027cf8e161bec2927a0decc4c44b (diff) | |
also forbid caret as win32 cmd escape character
| -rw-r--r-- | anim-crop-tool/main.cpp | 2 | ||||
| -rw-r--r-- | loader/atlas.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/anim-crop-tool/main.cpp b/anim-crop-tool/main.cpp index fdb58e43..4e7dbbc4 100644 --- a/anim-crop-tool/main.cpp +++ b/anim-crop-tool/main.cpp @@ -234,7 +234,7 @@ static std::tuple<options, Arguments, bool> parse_cmdline(int argc, const char* { if (str.isEmpty()) return false; - if (str.findAny("\\<>&;:'\" ") || str.find("/.")) + if (str.findAny("\\<>&;:^'\" ") || str.find("/.")) return false; if (str[0] == '.' || str[0] == '/') return false; diff --git a/loader/atlas.cpp b/loader/atlas.cpp index 6b5060e7..1e498e1a 100644 --- a/loader/atlas.cpp +++ b/loader/atlas.cpp @@ -86,7 +86,7 @@ bool loader_impl::check_atlas_name(StringView str) { if (str.isEmpty()) return false; - if (str.findAny("\\<>&;:'\" ") || str.find("/.")) + if (str.findAny("\\<>&;:^'\" ") || str.find("/.")) return false; if (str[0] == '.' || str[0] == '/') return false; |
