fix(server): properly sanitize island names (#1393)

Co-authored-by: Lino Le Van <11367844+lino-levan@users.noreply.github.com>
This commit is contained in:
Reed von Redwitz
2023-07-03 02:08:47 +02:00
committed by GitHub
co-authored by Lino Le Van
parent ced2215446
commit eb53d53ab8
5 changed files with 31 additions and 4 deletions
+1 -1
View File
@@ -931,7 +931,7 @@ function toPascalCase(text: string): string {
}
function sanitizeIslandName(name: string): string {
const fileName = name.replace("/", "");
const fileName = name.replaceAll("/", "_");
return toPascalCase(fileName);
}