Changeset 17807


Ignore:
Timestamp:
2009/02/18 23:35:33 (15 years ago)
Author:
kishida
Message:

空白、改行の自動トリム

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_4/data/class/pages/shopping/LC_Page_Shopping_Deliv.php

    r17684 r17807  
    8585 
    8686        $this->objLoginFormParam = new SC_FormParam();  // ログインフォーム用 
    87         $this->lfInitLoginFormParam();                      // 初期設定 
     87        $this->lfInitLoginFormParam(); 
     88        //パスワード・Eメールにある空白をトリム 
     89        $_POST["login_email"] = preg_replace('/^[  \r\n]*(.*?)[  \r\n]*$/u', '$1', $_POST["login_email"]); 
     90        $_POST["login_pass"] = trim($_POST["login_pass"]); //認証用 
     91        $_POST["login_pass1"] = $_POST["login_pass"];      //最小桁数比較用 
     92        $_POST["login_pass2"] = $_POST["login_pass"];      //最大桁数比較用 
    8893        $this->objLoginFormParam->setParam($_POST);     // POST値の取得 
    8994 
     
    160165                        SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR); 
    161166                    } 
    162                      
     167 
    163168                    // 登録済みの別のお届け先を受注一時テーブルに書き込む 
    164169                    $this->lfRegistOtherDelivData($uniqid, $objCustomer, $_POST['deliv_check']); 
     
    429434        $this->objLoginFormParam->addParam("記憶する", "login_memory", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); 
    430435        $this->objLoginFormParam->addParam("メールアドレス", "login_email", STEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK")); 
    431         $this->objLoginFormParam->addParam("パスワード", "login_pass", STEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK")); 
     436        $this->objLoginFormParam->addParam("パスワード", "login_pass", PASSWORD_LEN1, "", array("EXIST_CHECK")); 
     437        $this->objLoginFormParam->addParam("パスワード", "login_pass1", PASSWORD_LEN1, "", array("EXIST_CHECK", "MIN_LENGTH_CHECK")); 
     438        $this->objLoginFormParam->addParam("パスワード", "login_pass2", PASSWORD_LEN2, "", array("EXIST_CHECK", "MAX_LENGTH_CHECK")); 
    432439    } 
    433440 
Note: See TracChangeset for help on using the changeset viewer.