Fix name length validation for UTF-8 Korean names
This commit is contained in:
+3
-3
@@ -76,7 +76,7 @@ body,td { font-size: 10px; color: #aaaab9; cursor: crosshair}
|
||||
<td align="left" valign="middle">
|
||||
<tt style="font-size:10pt;color:#aaaabb">
|
||||
<li>유저 ID는 <span style="color:#eebbdd">반각 영문/숫자 4~12글자</span>입니다.
|
||||
<li>플레이어명은 <span style="color:#eebbdd">전각 8자(반각 16자) 이내</span>입니다.
|
||||
<li>플레이어명은 <span style="color:#eebbdd">한글 8자(영문/숫자 16자) 이내</span>입니다.
|
||||
<li>비밀번호는 <span style="color:#eebbdd">반각 영문/숫자 4~8글자</span>입니다.
|
||||
<hr color=#444466 size=4 hoshade>
|
||||
<li>중복 등록은 금지되어 있습니다. 발견 시 삭제됩니다.
|
||||
@@ -114,7 +114,7 @@ EOM
|
||||
신규 등록
|
||||
<form action="$ore_reg" method="$method" name="ore_reg">
|
||||
<input type="hidden" name="mode" value="regist2">
|
||||
플레이어명:<input type="text" size="6" name="nm">(전각 4~8자)<br>
|
||||
플레이어명:<input type="text" size="6" name="nm">(한글 8자 이내)<br>
|
||||
ID:<input type="text" size="6" name="id">(반각 영문/숫자 4~12자)<br>
|
||||
비밀번호:<input type="text" size="6" maxlength="8" name="pw">(반각 영문/숫자 4~8자)<br>
|
||||
성별:남<input type="radio" name="sei" value="1"> 여<input type="radio" name="sei" value="2"><br>
|
||||
@@ -246,7 +246,7 @@ sub form_check{
|
||||
if($pw =~ m/[^0-9a-zA-Z]/){ &error("비밀번호는 반각 영문/숫자로 입력해 주세요.",1); }
|
||||
|
||||
if(length($pw)<4 || length($pw)>8){ &error("비밀번호는 반각 영문/숫자 4~8자여야 합니다.",1); }
|
||||
if(length($in{'nm'})>16){ &error("이름은 반각 16자 이내여야 합니다.",1); }
|
||||
if(length($in{'nm'})>24){ &error("이름은 한글 8자(영문/숫자 16자) 이내여야 합니다.",1); }
|
||||
if(length($id)<4 || length($id)>12){ &error("유저 ID는 반각 영문/숫자 4~12자 이내여야 합니다.",1); }
|
||||
if($id eq $pw){ &error("유저 ID와 비밀번호가 동일합니다.",1);}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user