Skip to content

Commit

Permalink
refactor: '&' 명령 제한
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizyHub committed Dec 14, 2023
1 parent 6c550d0 commit 9c5d9a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/common/command.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ 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 9c5d9a8

Please sign in to comment.