text encoding fixed

This commit is contained in:
d1str4ught
2025-08-18 02:12:07 +02:00
parent da0a923cde
commit 34000c3306
484 changed files with 5767 additions and 5767 deletions

View File

@@ -1,4 +1,4 @@
#include "stdafx.h"
#include "stdafx.h"
#include "constants.h"
#include "config.h"
#include "input.h"
@@ -30,11 +30,11 @@ bool FN_IS_VALID_LOGIN_STRING(const char *str)
for (tmp = str; *tmp; ++tmp)
{
// 알파벳과 수자만 허용
// 알파벳과 수자만 허용
if (isdigit(*tmp) || isalpha(*tmp))
continue;
// 캐나다는 몇몇 특수문자 허용
// 캐나다는 몇몇 특수문자 허용
if (LC_IsCanada())
{
switch (*tmp)
@@ -130,7 +130,7 @@ void CInputAuth::Login(LPDESC d, const char * c_pData)
return;
}
// string 무결성을 위해 복사
// string 무결성을 위해 복사
char login[LOGIN_MAX_LEN + 1];
trim_and_lower(pinfo->login, login, sizeof(login));
@@ -254,13 +254,13 @@ void CInputAuth::LoginOpenID(LPDESC d, const char * c_pData)
//OpenID test code.
TPacketCGLogin5 *tempInfo1 = (TPacketCGLogin5 *)c_pData;
//일본 웹 서버에 인증키 확인 요청을 보낸다.
//일본 웹 서버에 인증키 확인 요청을 보낸다.
char* authKey = tempInfo1->authKey;
char returnID[LOGIN_MAX_LEN + 1] = {0};
int test_url_get_protocol = auth_OpenID(authKey, inet_ntoa(d->GetAddr().sin_addr), returnID);
//인증 실패. 에러 처리
//인증 실패. 에러 처리
if (0!=test_url_get_protocol)
{
LoginFailure(d, "OpenID Fail");
@@ -282,7 +282,7 @@ void CInputAuth::LoginOpenID(LPDESC d, const char * c_pData)
return;
}
// string 무결성을 위해 복사
// string 무결성을 위해 복사
char login[LOGIN_MAX_LEN + 1];
trim_and_lower(pinfo->login, login, sizeof(login));
@@ -459,7 +459,7 @@ int CInputAuth::auth_OpenID(const char *authKey, const char *ipAddr, char *rID)
return 3;
}
//결과값 파싱
//결과값 파싱
char buffer[1024];
strcpy(buffer, reply);
@@ -484,7 +484,7 @@ int CInputAuth::auth_OpenID(const char *authKey, const char *ipAddr, char *rID)
return 4;
}
if (0 != strcmp("OK", success)) //에러 처리
if (0 != strcmp("OK", success)) //에러 처리
{
int returnNumber = 0;
str_to_number(returnNumber, id);
@@ -547,7 +547,7 @@ int CInputAuth::Analyze(LPDESC d, BYTE bHeader, const char * c_pData)
Login(d, c_pData);
break;
//2012.07.19 OpenID : 김용욱
//2012.07.19 OpenID : 김용욱
case HEADER_CG_LOGIN5_OPENID:
if (openid_server)
LoginOpenID(d, c_pData);