Skip to content

Commit

Permalink
Merge pull request #1132 from nanasess/fix-valid-url
Browse files Browse the repository at this point in the history
LC_Page_Mypage_DeliveryAddr 遷移チェックの定義重複しているのを修正
  • Loading branch information
nanasess authored Jan 11, 2025
2 parents 312fd1d + 6acf1b3 commit 6760492
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions data/class/pages/mypage/LC_Page_Mypage_DeliveryAddr.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*/
class LC_Page_Mypage_DeliveryAddr extends LC_Page_Ex
{
/** @var string */
/** @var array */
public $validUrl;
/** @var string */
public $ParentPage;
Expand Down Expand Up @@ -87,8 +87,7 @@ public function action()
}

// 正しい遷移かをチェック
$arrParentPageList = [DELIV_URLPATH, MYPAGE_DELIVADDR_URLPATH, MULTIPLE_URLPATH];
if (!SC_Utils_Ex::isBlank($ParentPage) && !in_array($ParentPage, $arrParentPageList)) {
if (!SC_Utils_Ex::isBlank($ParentPage) && !in_array($ParentPage, $this->validUrl)) {
// 遷移が正しくない場合、デフォルトであるマイページの配送先追加の画面を設定する
$ParentPage = MYPAGE_DELIVADDR_URLPATH;
}
Expand Down

0 comments on commit 6760492

Please sign in to comment.