Skip to content

Commit bbac8fa

Browse files
committed
fix: 특수문자 제한 설정
1 parent 9c5d9a8 commit bbac8fa

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

packages/backend/src/common/command.guard.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,18 @@ export class CommandGuard implements CanActivate {
1818
(mode === 'editor' ||
1919
(mode === 'command' &&
2020
message.startsWith('git') &&
21-
!this.isMessageIncluded(message, [';', '>', '|', '<', '&'])))
21+
!this.isMessageIncluded(message, [
22+
';',
23+
'>',
24+
'|',
25+
'<',
26+
'&',
27+
'$',
28+
'(',
29+
')',
30+
'{',
31+
'}',
32+
])))
2233
)
2334
) {
2435
throw new ForbiddenException('금지된 명령입니다');

0 commit comments

Comments
 (0)