Skip to content
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

1.8.18에서 익명으로 작성한 글을 수정하면 원래 회원정보가 노출됩니다. #1874

Closed
kijin opened this issue Mar 9, 2016 · 1 comment
Labels
Milestone

Comments

@kijin
Copy link
Contributor

kijin commented Mar 9, 2016

재현 방법

  1. 익명 게시판에 글을 씁니다.
  2. 이름이 anonymous로 나오고, 이름을 클릭해도 회원정보 메뉴가 뜨지 않습니다. (여기까지 정상)
  3. 글을 수정합니다.
  4. 이름은 여전히 anonymous이지만, 클릭하면 회원정보 메뉴가 뜹니다.
  5. 다시 수정합니다.
  6. 이제는 회원정보 메뉴가 뜨지 않습니다.
  7. 또다시 수정합니다.
  8. 또 회원정보 메뉴가 뜹니다.

즉, 수정할 때마다 회원정보가 노출되었다가 숨겨졌다가를 번갈아 반복합니다.

해결 방법

board.controller.php에서 이번에 수정된

$obj->member_srl = $oDocument->get('member_srl') * -1;

이 코드를 아래와 같이 변경합니다.

$obj->member_srl = abs($oDocument->get('member_srl')) * -1;
@YJSoft
Copy link
Contributor

YJSoft commented Mar 9, 2016

👍

@ghost ghost self-assigned this May 2, 2016
@ghost ghost added this to the 1.8.20 milestone May 9, 2016
@ghost ghost added the type/bug label May 9, 2016
@ghost ghost closed this as completed May 12, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants