ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Opened 13 years ago

Closed 13 years ago

#556 closed defect (fixed)

ログイン後のリダイレクト先が保存されない場合がある

Reported by: ogawa Owned by: takanashi
Priority: minor Milestone: OpenPNE2.6.6
Component: core【OpenPNEコア部分】 Version:
Keywords: Cc:

Description

部分SSL設定でログインページがSSL_REQUIREDである場合、http://でのリクエスト時のログイン後のリダイレクト先が保存されない

修正パッチ作りました。やや強引ですが。

Index: webapp/lib/auth.inc
===================================================================
--- webapp/lib/auth.inc (リビジョン 2571)
+++ webapp/lib/auth.inc (リビジョン 2574)
@@ -19,6 +19,11 @@
         client_redirect_absolute(get_login_url());
     } else {
         $_REQUEST['login_params'] = $_SERVER['QUERY_STRING'];
+        if ($_SERVER['REQUEST_METHOD'] == 'POST') {
+            $_POST = array('login_params' => $_SERVER['QUERY_STRING']);
+        } else {
+            $_GET = array('login_params' => $_SERVER['QUERY_STRING']);
+        }
         openpne_forward('pc', 'page', "o_login");
         exit;
     }
Index: webapp/modules/ktai/auth.inc
===================================================================
--- webapp/modules/ktai/auth.inc        (リビジョン 2571)
+++ webapp/modules/ktai/auth.inc        (リビジョン 2574)
@@ -71,6 +71,11 @@
         $_REQUEST['kad'] = t_encrypt(db_member_username4c_member_id($c_member_id, true));
     }
     $_REQUEST['login_params'] = $_SERVER['QUERY_STRING'];
+    if ($_SERVER['REQUEST_METHOD'] == 'POST') {
+        $_POST = array('login_params' => $_SERVER['QUERY_STRING']);
+    } else {
+        $_GET = array('login_params' => $_SERVER['QUERY_STRING']);
+    }
     openpne_forward('ktai', 'page', 'o_login');
     exit;
 }

Change History (3)

comment:1 Changed 13 years ago by takanashi

Owner: changed from nobody to openpne

comment:2 Changed 13 years ago by takanashi

Owner: changed from openpne to takanashi

2.6.6で取り込みます。

comment:3 Changed 13 years ago by takanashi

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.