Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
1:1문의 이메일 체크 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
chicpro committed May 3, 2016
1 parent cdcb5ac commit ea249d2
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions bbs/qawrite_update.php
Expand Up @@ -16,15 +16,12 @@
$qaconfig = get_qa_config();

// e-mail 체크
if(isset($_POST['qa_email']) && $qa_email) {
$qa_email = '';
if(isset($_POST['qa_email']) && $_POST['qa_email'])
$qa_email = get_email_address(trim($_POST['qa_email']));

if($qaconfig['qa_req_email'] && !$qa_email)
$msg[] = '이메일을 입력하세요.';

if (!preg_match("/([0-9a-zA-Z_-]+)@([0-9a-zA-Z_-]+)\.([0-9a-zA-Z_-]+)/", $qa_email))
$msg[] = '이메일 주소가 형식에 맞지 않습니다.';
}
if($qaconfig['qa_req_email'] && !$qa_email)
$msg[] = '이메일을 입력하세요.';

$qa_subject = '';
if (isset($_POST['qa_subject'])) {
Expand Down

0 comments on commit ea249d2

Please sign in to comment.