-
Notifications
You must be signed in to change notification settings - Fork 2
[FEAT] 단체전 이모티콘 채팅 UI 및 구조 분리 #103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
The head ref may contain hidden characters: "FEAT-\uB2E8\uCCB4\uC804-\uC774\uBAA8\uD2F0\uCF58-\uCC44\uD305"
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
1e99f6d
feat: 플레이어 닉네임 받아옴 (#102)
1d75407
feat: data.type Efeat: data.type EMOJI_CHAT 받아옴 (#102)
a767461
feat: emoji ui (#102)
2057c70
feat:단체전 js 분리 (#102)
db4d2b8
feat: 단체전 js 절대 경로 추가 (#102)
c8eeffc
fix: 개인전 js에 단체전 추가했다가 삭제 (#102)
5698b4c
FIX: emojiChatMulti slot 필드명 수정
kkhhmm3103 640e9c6
fix: 이모지 전송 프로토콜을 서버 포맷에 맞게 수정 (#102)
kkhhmm3103 b71762a
fix: emojiChat CSS 경로에 contextPath 적용
kkhhmm3103 fe901bb
fix: 파일 이름 오타 수정
kkhhmm3103 ddb4428
fix: 주석 오타 수정 (#102)
kkhhmm3103 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
입력 검증 부재 및 예외 처리 개선 필요
emojiKey에 대한 검증이 없습니다. 현재는 클라이언트가 전달한 값을 그대로 JSON에 포함하여 브로드캐스트합니다. 악의적인 입력(예: 매우 긴 문자열, 특수 문자)에 대한 방어가 필요합니다.또한 Line 163에서 예외를 무시하면 디버깅이 어려워집니다.
🔎 개선 제안
if (msg != null && msg.startsWith("EMOJI_CHAT:")) { String emojiKey = msg.substring("EMOJI_CHAT:".length()).trim(); - if (emojiKey.isEmpty()) + // 허용된 이모지 키만 처리 + if (emojiKey.isEmpty() || !isValidEmojiKey(emojiKey)) return;🤖 Prompt for AI Agents