diff options
-rw-r--r-- | loader/atlas.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/loader/atlas.cpp b/loader/atlas.cpp index e856f639..b64efde2 100644 --- a/loader/atlas.cpp +++ b/loader/atlas.cpp @@ -34,7 +34,8 @@ bool loader_::check_atlas_name(StringView str) noexcept return true; if (!str || !first_char.find(str[0])) return false; - if (str.findAny("\\\"'\n\r\t\a\033\0|$!%{}^*?<>&;:^"_s) || str.find("/."_s) || str.find("//"_s)) + if (str.findAny("\\\"'\n\r\t\a\033\0|$!%{}^*?<>&;:^"_s) || + str.find("/."_s) || str.find("//"_s) || str.find('\0')) return false; return true; |