From dd075ce2ee282af7868bcd519c53b81d873ef364 Mon Sep 17 00:00:00 2001 From: Agent X <44549182+Agent-11@users.noreply.github.com> Date: Tue, 25 Oct 2022 16:28:19 -0400 Subject: [PATCH] Add - to allowed characters in mod storage (#218) can't have anything in ex-coop --- src/pc/mods/mod_storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pc/mods/mod_storage.c b/src/pc/mods/mod_storage.c index 6ade649b..1c138266 100644 --- a/src/pc/mods/mod_storage.c +++ b/src/pc/mods/mod_storage.c @@ -38,7 +38,7 @@ void strdelete(char string[], char substr[]) { bool char_valid(char* buffer) { if (buffer[0] == '\0') { return false; } while (*buffer != '\0') { - if ((*buffer >= 'a' && *buffer <= 'z') || (*buffer >= 'A' && *buffer <= 'Z') || (*buffer >= '0' && *buffer <= '9') || *buffer == '_' || *buffer == '.') { + if ((*buffer >= 'a' && *buffer <= 'z') || (*buffer >= 'A' && *buffer <= 'Z') || (*buffer >= '0' && *buffer <= '9') || *buffer == '_' || *buffer == '.' || *buffer == '-') { buffer++; continue; }