Skip to content

fix #1686 $GLOBALS['HTTP_RAW_POST_DATA'] 버그 수정#1690

Closed
YJSoft wants to merge 1 commit into
xpressengine:developfrom
YJSoft:bugfix/jsondata
Closed

fix #1686 $GLOBALS['HTTP_RAW_POST_DATA'] 버그 수정#1690
YJSoft wants to merge 1 commit into
xpressengine:developfrom
YJSoft:bugfix/jsondata

Conversation

@YJSoft

@YJSoft YJSoft commented Aug 3, 2015

Copy link
Copy Markdown
Contributor
Q A
사소한 변경 아니오
버그 수정
새로운 기능 아니오
호환성 깨짐 아니오
수정하는 이슈 #1686

file_get_contents("php://input")가 XML이 아닐 때 $GLOBALS['HTTP_RAW_POST_DATA']가 설정되지 않기에, JSON POST 요청 등이 오작동하는 문제를 해결합니다.

JSON 요청일 경우 simplexml_load_string 함수에서 체크를 하지 않고 바로 $GLOBALS['HTTP_RAW_POST_DATA'] 변수를 설정합니다.

@YJSoft YJSoft closed this Sep 24, 2015
@YJSoft YJSoft deleted the bugfix/jsondata branch September 24, 2015 06:06
@YJSoft YJSoft restored the bugfix/jsondata branch September 24, 2015 06:13
@YJSoft YJSoft reopened this Sep 24, 2015
@YJSoft YJSoft force-pushed the bugfix/jsondata branch 5 times, most recently from 5fd416a to 85ea7ae Compare September 24, 2015 06:43
file_get_contents("php://input")가 XML이 아닐 때 $GLOBALS['HTTP_RAW_POST_DATA']가 설정되지 않기에, JSON POST 요청 등이 오작동하는 문제를 해결합니다.
@YJSoft

YJSoft commented Oct 6, 2015

Copy link
Copy Markdown
Contributor Author

#1763

ghost pushed a commit that referenced this pull request Dec 8, 2015
fix #1690 $GLOBALS['HTTP_RAW_POST_DATA'] 버그 수정
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