document 모듈의 getDocumentList에서 비밀 글의 내용을 볼 수 있는 볼 수 있는 문제#2074
Closed
wincomi wants to merge 2 commits into
Closed
Conversation
board 모듈에서 dispBoardContentList를 json으로 요청할 때 비밀 글임에도 불구하고 내용(content)가 표시되는 문제가 있어 확인해보았습니다. 더 좋은 방식이 있을 것 같은데 일단은 이렇게 처리해봅니다.
Contributor
|
getDocumentList는 게시판뿐 아니라 다양한 모듈에서 호출하고 그 결과를 가공하여 사용하는 범용 메소드입니다. 특정 액션에서 호출했을 때 문제가 발생한다고 하여 getDocumentList에서 내용을 변조해 버린다면 이 메소드에 의존하는 많은 모듈이 오작동할 수 있습니다. dispBoardContentList에서 게시물 목록을 제대로 필터링하지 않거나 의도하지 않은 형식으로 데이터를 반환하는 것이 문제라면 dispBoardContentList를 수정하는 것이 옳다고 생각합니다. |
Author
|
@kijin 그렇다면 dispBoardContentList 쪽의 부분을 수정해야겠군요. 제대로 분석을 못했네요 😅 |
Author
|
추가로 덧붙이면 XE 공식사이트의 이용 문의 게시판(https://www.xpressengine.com/index.php?act=dispBoardContentList&mid=service_help)을 json으로 요청할 경우 비밀글이 보이는 문제가 예시가 될 것 같습니다. |
Contributor
|
@wincomi board.api.php에서 |
Author
|
@kijin 감사합니다 👍 |
Contributor
ghost
pushed a commit
that referenced
this pull request
Apr 13, 2017
YJSoft
added a commit
to daolcms/daolcms
that referenced
this pull request
Apr 14, 2017
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
board 모듈에서 dispBoardContentList를 json으로 요청할 때 비밀 글임에도 불구하고 내용이 표시되는 문제가 있네요. 더 좋은 방식이 있을 것 같은데 일단은 이렇게 처리해봅니다.