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

アプリケーション内部のURLかの判定を共通処理化 #806

Closed
seasoftjapan opened this issue Dec 21, 2023 · 0 comments · Fixed by #814
Closed

アプリケーション内部のURLかの判定を共通処理化 #806

seasoftjapan opened this issue Dec 21, 2023 · 0 comments · Fixed by #814
Assignees
Milestone

Comments

@seasoftjapan
Copy link
Contributor

SC_Response::sendRedirect() に存在する判定処理を SC_Utils へ分離する。

$pattern = '/^(' . preg_quote(HTTP_URL, '/') . '|' . preg_quote(HTTPS_URL, '/') . ')/';
// アプリケーション外へのリダイレクトは扱わない
if (preg_match($pattern, $url) === 0) {

#803 でも利用予定。

@seasoftjapan seasoftjapan added this to the 2.17.3 milestone Dec 21, 2023
@seasoftjapan seasoftjapan self-assigned this Dec 21, 2023
ji-eunsoo added a commit that referenced this issue Feb 14, 2024
現在のカゴの中 [戻る]ボタン 購入手続きへ遷移することがある #803 (#806 を含む)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant