diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-07-25 14:38:51 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-07-25 14:38:51 +0800 |
commit | 1905343ae9d6f0ba2f7d88218c815735db2b4d89 (patch) | |
tree | 3f74169d6c31d93ad2d0b4768120b47504f71077 | |
parent | 82c30d03d5a5fd8dec7034efb54b674a9f722519 (diff) | |
download | pttbbs-1905343ae9d6f0ba2f7d88218c815735db2b4d89.tar pttbbs-1905343ae9d6f0ba2f7d88218c815735db2b4d89.tar.gz pttbbs-1905343ae9d6f0ba2f7d88218c815735db2b4d89.tar.bz2 pttbbs-1905343ae9d6f0ba2f7d88218c815735db2b4d89.tar.lz pttbbs-1905343ae9d6f0ba2f7d88218c815735db2b4d89.tar.xz pttbbs-1905343ae9d6f0ba2f7d88218c815735db2b4d89.tar.zst pttbbs-1905343ae9d6f0ba2f7d88218c815735db2b4d89.zip |
Foreigner may not have 9 ~ 10 digit phone number
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4744 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/register.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mbbsd/register.c b/mbbsd/register.c index d954b515..08a15d95 100644 --- a/mbbsd/register.c +++ b/mbbsd/register.c @@ -1494,6 +1494,10 @@ u_register(void) REGNOTES_ROOT "phone", "連絡電話", phone, 11); if( (errcode = isvalidphone(phone)) == NULL ) break; +#ifdef FOREIGN_REG + else if(fore[0] && !strstr(errcode, "分隔符號")) + break; +#endif else vmsg(errcode); } |