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

fix for Not-Alphabet URL document writing (#634) #1120

Merged
2 commits merged into from
Mar 3, 2015
Merged

fix for Not-Alphabet URL document writing (#634) #1120

2 commits merged into from
Mar 3, 2015

Conversation

misol
Copy link
Contributor

@misol misol commented Jan 1, 2015

#634

Internet Explorer send punycode URL(ASCII) URL and non-alphabet

Unicode URL URL as a referer. 인터넷 익스플로러는 리퍼러 주소로 퓨니코드 주소와 유니코드 URL을 섞어
쓰고 있습니다. AJAX 통신에는 리퍼러로 Unicode를 사용하고 요청 호스트로는 퓨니코드 URL을 사용(이건 다국어 주소
형식으로 접속하려면 이렇게 했어야 할 것)합니다.

  • XE strictly compare referer and server host for denying CSRF, but
    punycode URL and Unicode URL should be dealt as a same one. 그런데 XE는 리퍼러의
    호스트와 서버 호스트를 비교합니다. punycode로 쓰인 주소와 Unicode로 쓰인 주소는 같은 주소를 지시하더라도 문자열이
    다릅니다. 같은 주소를 지칭하는 다른 문자열을 punycode로 변환해서 같은 주소라고 인식할 수 있게 수정했습니다.
  • Fix checkCSRF function to deal both form as a same one.
  • Convert Unicode URL input to punycode URL on the Admin Default URL
    Settings. 관리자가 유니코드 형식으로 기본 주소를 입력하더라도, 퓨니코드로 변환해 저장하도록 했습니다. 퓨니코드로 저장하는
    것이 여러모로 유용하기 때문입니다.
  • For converting punycode URL, include IDNA coverting class. 퓨니코드와 유니코드
    간 변환을 위해서 IDNA 변환 클래스(LGPL사용권)를 포함시켰습니다.

이 수정을 하면 _한글 도메인에서 글 작성이 가능_합니다. 하지만, _파일 업로드의 경우는 SWF Uploader 이슈로 파일 업로드가 불가능_합니다. 이 문제는, HTML5를 지원하는 파일 업로더를 이용하면 해결됩니다. (워드 프레스 등의 해결법) HTML5를 지원하는 파일 업로더는 AXISJ 업로더 등을 포함해서 XE 공식 홈페이지 자료실에서 다운받아 사용할 수 있습니다.(에디터 변경)

#634

# Internet Explorer send punycode URL(ASCII) URL and non-alphabet
Unicode URL URL as a referer. 인터넷 익스플로러는 리퍼러 주소로 퓨니코드 주소와 유니코드 URL을 섞어
쓰고 있습니다. AJAX 통신에는 리퍼러로 Unicode를 사용하고 요청 호스트로는 퓨니코드 URL을 사용(이건 다국어 주소
형식으로 접속하려면 이렇게 했어야 할 것)합니다.
- XE strictly compare referer and server host for denying CSRF, but
punycode URL and Unicode URL should be dealt as a same one. 그런데 XE는 리퍼러의
호스트와 서버 호스트를 비교합니다. punycode로 쓰인 주소와 Unicode로 쓰인 주소는 같은 주소를 지시하더라도 문자열이
다릅니다. 같은 주소를 지칭하는 다른 문자열을 punycode로 변환해서 같은 주소라고 인식할 수 있게 수정했습니다.
- Fix checkCSRF function to deal both form as a same one.
- Convert Unicode URL input to punycode URL on the Admin Default URL
Settings. 관리자가 유니코드 형식으로 기본 주소를 입력하더라도, 퓨니코드로 변환해 저장하도록 했습니다. 퓨니코드로 저장하는
것이 여러모로 유용하기 때문입니다.
- For converting punycode URL, include IDNA coverting class. 퓨니코드와 유니코드
간 변환을 위해서 IDNA 변환 클래스(LGPL사용권)를 포함시켰습니다.
@bjrambo
Copy link
Contributor

bjrambo commented Jan 1, 2015

1 similar comment
@wa-sans-tv
Copy link
Contributor

@YJSoft
Copy link
Contributor

YJSoft commented Jan 1, 2015

👍

@ghost ghost added the type/enhancement label Jan 2, 2015
@ghost ghost modified the milestones: 1.7.9, 1.7.10 Jan 2, 2015
@ghost ghost self-assigned this Jan 2, 2015
@@ -1517,7 +1517,17 @@ function checkCSRF()
}

$defaultUrl = Context::getDefaultUrl();
$referer = parse_url($_SERVER["HTTP_REFERER"]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$referer = NULL;

변수 초기화 필요~

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

기존에 있던 코드인데, 초키화도 넣어서 다시 PR 넣는게 좋을까요?

@misol
Copy link
Contributor Author

misol commented Jan 19, 2015

@misol
Copy link
Contributor Author

misol commented Jan 19, 2015

알이즈웰

@misol
Copy link
Contributor Author

misol commented Feb 2, 2015

@bnu 문제 있으면 알려주세요!

@ghost
Copy link

ghost commented Feb 2, 2015

:)

@ghost ghost modified the milestones: 1.7.11, 1.7.10 Feb 4, 2015
@ghost ghost modified the milestones: 1.7.11, 1.7.12 Feb 13, 2015
@ghost ghost modified the milestones: 1.7.12, 1.8.0.beta.1, 1.8.0.beta.2 Mar 3, 2015
@ghost ghost removed this from the 1.8.0.beta.1 milestone Mar 3, 2015
ghost pushed a commit that referenced this pull request Mar 3, 2015
fix for Not-Alphabet URL document writing (#634)
@ghost ghost merged commit bec1f35 into xpressengine:develop Mar 3, 2015
@ghost ghost added the merged-pull-request label Mar 3, 2015
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants