fixed slash handling in file names

This commit is contained in:
wukko
2023-10-15 15:11:39 +06:00
parent f1a35a0c6d
commit dfdf8580be
3 changed files with 4 additions and 4 deletions

View File

@@ -75,7 +75,7 @@ export function cleanURL(url, host) {
}
export function cleanString(string) {
for (let i in forbiddenCharsString) {
string = string.replaceAll(forbiddenCharsString[i], '')
string = string.replaceAll("/", "_").replaceAll(forbiddenCharsString[i], '')
}
return string;
}