Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit ea6a37a

Browse files
authored
Merge pull request #24 from MoeGrid/master
修复 文件名中有单引号无法上传的问题
2 parents f296c0a + e54b4db commit ea6a37a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/service/system_file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export default class FileManager {
182182
}
183183

184184
public static checkFileName(fileName: string) {
185-
const blackKeys = ["/", "\\", "|", "?", "*", ">", "<", ";", '"', "'"];
185+
const blackKeys = ["/", "\\", "|", "?", "*", ">", "<", ";", '"'];
186186
for (const ch of blackKeys) {
187187
if (fileName.includes(ch)) return false;
188188
}

src/tools/filepath.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121

2222
export function checkFileName(fileName: string) {
23-
const blackKeys = ["/", "\\", "|", "?", "*", ">", "<", ";", '"', "'"];
23+
const blackKeys = ["/", "\\", "|", "?", "*", ">", "<", ";", '"'];
2424
for (const ch of blackKeys) {
2525
if (fileName.includes(ch)) return false;
2626
}

0 commit comments

Comments
 (0)