Ignore:
Timestamp:
2007/10/11 16:41:56 (19 years ago)
Author:
nanasess
Message:

addslashes() を SC_Utils_Ex::sfQuoteSmart() に修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/pages/regist/LC_Page_Regist.php

    r16371 r16379  
    130130                //$this->tpl_mainpage = 'regist/complete.tpl'; 
    131131                //$this->tpl_title = ' 会員登録(完了ページ)'; 
    132                 $registSecretKey = lfRegistData($_GET);         //本会員登録(フラグ変更) 
    133                 lfSendRegistMail($registSecretKey);             //本会員登録完了メール送信 
     132                $registSecretKey = $this->lfRegistData($_GET);          //本会員登録(フラグ変更) 
     133                $this->lfSendRegistMail($registSecretKey);              //本会員登録完了メール送信 
    134134 
    135135                // ログイン済みの状態にする。 
    … …  
    137137                $email = $objQuery->get("dtb_customer", "email", "secret_key = ?", array($registSecretKey)); 
    138138                $objCustomer->setLogin($email); 
    139                 $this->sendRedirect($this->getLocation("./complete.php")); 
    140                 header("Location: " . gfAddSessionId("./complete.php")); 
     139                $this->sendRedirect($this->getLocation("./complete.php"), true); 
    141140                exit; 
    142141            } 
    … …  
    188187        $arrRet = $objQuery->select("point", "dtb_customer", $where, array($array["id"])); 
    189188        // 会員登録時の加算ポイント(購入時会員登録の場合は、ポイント加算) 
    190         $arrRegist['point'] = $arrRet[0]['point'] + addslashes($arrInfo['welcome_point']); 
     189        $arrRegist['point'] = $arrRet[0]['point'] + $arrInfo['welcome_point']; 
    191190 
    192191        $objQuery->update("dtb_customer", $arrRegist, $where, array($array["id"])); 
    … …  
    229228        } 
    230229 
    231         $objQuery->update("dtb_customer", $arrRegistMail, "email = '" .addslashes($email). "' AND del_flg = 0"); 
     230        $objQuery->update("dtb_customer", $arrRegistMail, "email = " . SC_Utils_Ex::sfQuoteSmart($email). " AND del_flg = 0"); 
    232231        $objConn->query("COMMIT"); 
    233232 
Note: See TracChangeset for help on using the changeset viewer.