Skip to content

fix: [TA-199] getPhotographerList / getPromotionList params 미인코딩 쿼리스트링 오염 수정#101

Merged
seorinn merged 2 commits into
developfrom
TA-199-fix-params-encoding
May 13, 2026
Merged

fix: [TA-199] getPhotographerList / getPromotionList params 미인코딩 쿼리스트링 오염 수정#101
seorinn merged 2 commits into
developfrom
TA-199-fix-params-encoding

Conversation

@seorinn

@seorinn seorinn commented May 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • getPhotographerList, getPromotionList API 함수가 params: string을 URL에 직접 이어 붙여 특수문자 포함 시 쿼리스트링이 오염되던 버그 수정
  • API 함수 파라미터를 URLSearchParams로 변경하여 타입 레벨에서 인코딩 보장
  • hooks(usePhotographerList, usePromotionList)는 string 타입 유지 (useEffect 의존성 참조 동등성 보장), 내부에서 new URLSearchParams(params) 변환
  • SearchPage/index.tsx에서 searchKeyword=${searchKeyword} 직접 이어 붙이기 → new URLSearchParams({ searchKeyword }).toString()으로 수정 (핵심 취약점 수정)

Test plan

  • 특수문자(#, %, &, =)가 포함된 검색어로 작가/이벤트 검색 → URL 오염 없이 정상 요청 확인
  • 일반 검색어로 작가/이벤트 목록 정상 로드 확인
  • 홈 화면 작가/이벤트 박스 정상 로드 확인 (하드코딩된 params 영향 없음)
  • TypeScript 빌드 에러 없음 확인

@vercel

vercel Bot commented May 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
damaba Ready Ready Preview, Comment May 13, 2026 7:16am

@seorinn seorinn marked this pull request as ready for review May 13, 2026 07:18
@seorinn seorinn merged commit b6e0b5c into develop May 13, 2026
3 checks passed
@seorinn seorinn deleted the TA-199-fix-params-encoding branch May 13, 2026 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant