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

5.5.9 버전에서 'url에 타 도메인을 지정할 수 없습니다.' 에러. #290

Open
heisice opened this issue Oct 29, 2023 · 1 comment

Comments

@heisice
Copy link

heisice commented Oct 29, 2023

G5_DOMAIN을 설정한 경우 서브페이지에서 로그인하면,
https://domain.combbs/gallery 와 같은식으로 이동할 URL이 잘못 설정되어
'url에 타 도메인을 지정할 수 없습니다.' 라는 에러 메세지가 발생합니다.

저는 아래처럼 수정하였습니다.

image

urlencode.patch

@thisgun
Copy link
Contributor

thisgun commented Nov 7, 2023

안녕하세요. SIR 입니다.

알려주셔서 감사합니다.

기존 코드

$urlencode = G5_DOMAIN.urldecode(preg_replace("/^".urlencode($p['path'])."/", "", $urlencode));

를 아래와 같이 수정하겠습니다.

$urlencode = rtrim(G5_DOMAIN, '%2F').'%2F'.ltrim(urldecode(preg_replace("/^".urlencode($p['path'])."/", "", $urlencode)), '%2F');

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

No branches or pull requests

2 participants