# 사용자 이름에 마침표가 있는 문제

**URL:** https://meta.discourse.org/t/problem-with-periods-in-usernames/192195
**Category:** Bug
**Created:** [5월 31, 2021, 7:25오전 UTC](https://meta.discourse.org/t/problem-with-periods-in-usernames/192195 "2021-05-31T07:25:00Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![alex21](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@alex21](https://meta.discourse.org/u/alex21)
#### Post date: [5월 31, 2021, 7:25오전 UTC](https://meta.discourse.org/t/problem-with-periods-in-usernames/192195/1 "2021-05-31T07:25:00Z")

</div>

> [@codinghorror](#):
>
> 음, 이게 실제로 문제가 되는 건가요?

네, 제 생각에는 그렇습니다.

> **[Issues with the forum](https://forum.fairphone.com/t/issues-with-the-forum/33124/97?u=alex.a)**
>
> Strange issue… I wanted to open @alexka’s profile, I clicked on the avatar twice, and it brought me… to my own profile, @Alex.A. I can’t understand. All other profiles work fine, and this issue is 100% reproducible. Now, would it be because...

제 사용자 이름에 마침표가 포함되어 있습니다. 마침표는 와일드카드 역할을 하므로, 마침표 대신 다른 글자가 들어간 동일한 사용자 이름의 프로필을 열려고 하면 제 프로필이 열립니다.  
재현 방법:

- 마침표가 포함된 사용자 이름(예: @a.c)과, 마침표 위치가 다른 글자로 대체된 동일한 사용자 이름(예: @azc)을 준비합니다.
- @a.c로 로그인한 상태에서 멘션이나 아바타를 통해 @azc의 프로필을 열려고 해보세요. @a.c의 프로필로 이동하며, @azc의 프로필을 열 수 없습니다.
- 다른 사용자로 로그인하거나 @a.c의 사용자 이름을 @a.ct 등으로 변경하면 문제가 사라집니다.

상세한 내용은 위에 제시한 Fairphone 포럼의 해당 토픽을 확인해 주세요.

이 문제가 해당되는 건가요? Meta에서도 재현 가능한가요?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [5월 31, 2021, 6:24오후 UTC](https://meta.discourse.org/t/problem-with-periods-in-usernames/192195/2 "2021-05-31T18:24:46Z")

</div>

사용자 이름에 마침표가 들어가는 문제는 별개의 문제입니다. 해당 내용은 다른 주제로 이동하겠습니다.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [5월 31, 2021, 6:27오후 UTC](https://meta.discourse.org/t/problem-with-periods-in-usernames/192195/3 "2021-05-31T18:27:51Z")

</div>

@sam은 이전 게시물(버그가 수정되었기 때문에 현재 삭제됨)에서 사용자 이름에 마침표가 허용되며, 사용자 이름의 마침표와 관련된 문제가 발생하면 버그를 등록하라고 했습니다. 여기 하나 있습니다.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [6월 1, 2021, 3:19오후 UTC](https://meta.discourse.org/t/problem-with-periods-in-usernames/192195/6 "2021-06-01T15:19:31Z")

</div>

네, @alex21이 제공한 단계를 따라 try.discourse.org에서 이 문제를 재현할 수 있습니다. `@joma.ro`를 위한 새 계정을 생성했습니다. 그런 다음 `/latest`에서 특정 토픽 옆의 `@jomaxro` 아바타를 클릭하고, 사용자 카드에서 더 큰 아바타를 클릭한 결과, 예상대로 `@jomaxro`의 프로필 페이지가 아닌 `@joma.ro`의 프로필 페이지로 이동했습니다. cc @sam

---

<div class="post-metadata">

### Author: ![Osama](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osama/32/98013_2.png) [@Osama](https://meta.discourse.org/u/Osama)
#### Post date: [6월 2, 2021, 6:40오전 UTC](https://meta.discourse.org/t/problem-with-periods-in-usernames/192195/9 "2021-06-02T06:40:31Z")

</div>

네, 이 PR이 이 버그를 수정해야 합니다:

> <https://github.com/discourse/discourse/pull/13247>
>
> If we don't escape periods, they are interpreted as wildcards and it becomes imp…ossible to visit profiles of other users whose usernames match. E.g., if your username was \`a.c\` and attempted to visit \`abc\`'s profile, you would be incorrectly redirected to your own profile.
> 
> Meta topic: https://meta.discourse.org/t/problem-with-periods-in-usernames/192195?u=osama.

보고해 주셔서 감사합니다, @alex21님!

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [6월 3, 2021, 10:00오후 UTC](https://meta.discourse.org/t/problem-with-periods-in-usernames/192195/10 "2021-06-03T22:00:38Z")

</div>

이 주제는 17시간 후 자동으로 닫혔습니다. 더 이상 답변을 남길 수 없습니다.
