Skip to content
Snippets Groups Projects
Unverified Commit 96299299 authored by totegamma's avatar totegamma Committed by GitHub
Browse files

fix misskey-dev/misskey-#10417 (#10418)

parent e76d3e72
No related branches found
No related tags found
No related merge requests found
......@@ -86,6 +86,10 @@ export class ImportCustomEmojisProcessorService {
continue;
}
const emojiInfo = record.emoji;
if (!/^[a-zA-Z0-9_]+$/.test(emojiInfo.name)) {
this.logger.error(`invalid emojiname: ${emojiInfo.name}`);
continue;
}
const emojiPath = outputPath + '/' + record.fileName;
await this.emojisRepository.delete({
name: emojiInfo.name,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment