Changeset 18579 for branches/comu-ver2
- Timestamp:
- 2010/02/23 20:04:35 (14 years ago)
- Location:
- branches/comu-ver2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/SC_CheckError.php
r18467 r18579 532 532 $addr_spec = "${local_part}[@]$domain"; 533 533 534 $regexp = "/\A${addr_spec}\z/"; 534 $dot_atom_loose = "$atext+(?:[.]|$atext)*"; 535 $local_part_loose = "(?:$dot_atom_loose|$quoted_string)"; 536 $addr_spec_loose = "${local_part_loose}[@]$domain"; 537 538 if (RFC_COMPLIANT_EMAIL_CHECK) { 539 $regexp = "/\A${addr_spec}\z/"; 540 } else { 541 // 携帯メールアドレス用に、..や.@を許容する。 542 $regexp = "/\A${addr_spec_loose}\z/"; 543 } 535 544 536 545 if(strlen($this->arrParam[$value[1]]) > 0 && !preg_match($regexp, $this->arrParam[$value[1]])) { -
branches/comu-ver2/data/mtb_constants_init.php
r18570 r18579 613 613 /** プラグイン URL */ 614 614 define('PLUGIN_URL', USER_URL . PLUGIN_DIR); 615 /** EメールアドレスチェックをRFC準拠にするか(true:準拠する、false:準拠しない) */ 616 define('RFC_COMPLIANT_EMAIL_CHECK', false); 615 617 ?> -
branches/comu-ver2/html/install/sql/insert_data.sql
r18570 r18579 1039 1039 INSERT INTO mtb_constants VALUES ('CAMPAIGN_TEMPLATE_ACTIVE','"active/"',319,'キャンペーン関連'); 1040 1040 INSERT INTO mtb_constants VALUES ('CAMPAIGN_TEMPLATE_END','"end/"',320,'キャンペーン関連'); 1041 INSERT INTO mtb_constants VALUES ('RFC_COMPLIANT_EMAIL_CHECK', 'false', 321, 'EメールアドレスチェックをRFC準拠にするか(true:準拠する、false:準拠しない)'); 1041 1042 INSERT INTO mtb_constants VALUES ('MOBILE_TEMPLATE_DIR', 'TEMPLATE_DIR . "mobile/"', 400,'SMARTYテンプレート(mobile)'); 1042 1043 INSERT INTO mtb_constants VALUES ('MOBILE_COMPILE_DIR', 'COMPILE_DIR . "mobile/"', 401,'SMARTYコンパイル(mobile)');
Note: See TracChangeset
for help on using the changeset viewer.