Skip to content

Commit

Permalink
fix: 특수문자 제한 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
flydog98 committed Dec 15, 2023
1 parent 9c5d9a8 commit bbac8fa
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion packages/backend/src/common/command.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,18 @@ export class CommandGuard implements CanActivate {
(mode === 'editor' ||
(mode === 'command' &&
message.startsWith('git') &&
!this.isMessageIncluded(message, [';', '>', '|', '<', '&'])))
!this.isMessageIncluded(message, [
';',
'>',
'|',
'<',
'&',
'$',
'(',
')',
'{',
'}',
])))
)
) {
throw new ForbiddenException('금지된 명령입니다');
Expand Down

0 comments on commit bbac8fa

Please sign in to comment.