updated to the new pikotools api: changed utf8 functions PascalCase to snake_case
This commit is contained in:
@@ -296,7 +296,7 @@ void FunctionParser::ParseAnchor()
|
||||
while( *path )
|
||||
name_ascii += GetChar();
|
||||
|
||||
pt::UTF8ToWide(name_ascii, cur->request->anchor);
|
||||
pt::utf8_to_wide(name_ascii, cur->request->anchor);
|
||||
|
||||
if( !cur->request->anchor.empty() )
|
||||
log << log3 << "FP: anchor: " << cur->request->anchor << logend;
|
||||
@@ -368,7 +368,7 @@ void FunctionParser::ReadName()
|
||||
while( *path && *path!='/' && *path!='?' && *path!='#' )
|
||||
name_ascii += GetChar();
|
||||
|
||||
pt::UTF8ToWide(name_ascii, name);
|
||||
pt::utf8_to_wide(name_ascii, name);
|
||||
}
|
||||
|
||||
|
||||
@@ -379,7 +379,7 @@ void FunctionParser::ReadOrdinaryParName()
|
||||
while( *path && *path!='=' && *path!='&' && *path!='#' )
|
||||
name_ascii += GetChar();
|
||||
|
||||
pt::UTF8ToWide(name_ascii, name);
|
||||
pt::utf8_to_wide(name_ascii, name);
|
||||
}
|
||||
|
||||
|
||||
@@ -393,7 +393,7 @@ void FunctionParser::ReadOrdinaryParValue()
|
||||
while( *path && *path!='&' && *path!='#' )
|
||||
value_ascii += GetChar();
|
||||
|
||||
pt::UTF8ToWide(value_ascii, value);
|
||||
pt::utf8_to_wide(value_ascii, value);
|
||||
}
|
||||
|
||||
|
||||
@@ -404,7 +404,7 @@ void FunctionParser::ReadWinixParName()
|
||||
while( *path && *path!='/' && *path!=':' && *path!='#' )
|
||||
name_ascii += GetChar();
|
||||
|
||||
pt::UTF8ToWide(name_ascii, name);
|
||||
pt::utf8_to_wide(name_ascii, name);
|
||||
}
|
||||
|
||||
|
||||
@@ -418,7 +418,7 @@ void FunctionParser::ReadWinixParValue()
|
||||
while( *path && *path!='/' && *path!='#' )
|
||||
value_ascii += GetChar();
|
||||
|
||||
pt::UTF8ToWide(value_ascii, value);
|
||||
pt::utf8_to_wide(value_ascii, value);
|
||||
}
|
||||
|
||||
|
||||
|
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2012-2014, Tomasz Sowa
|
||||
* Copyright (c) 2012-2021, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -89,7 +89,7 @@ size_t tmp_ip_len = sizeof(tmp_ip_str) / sizeof(char);
|
||||
if( cur->session->ip_ban )
|
||||
cur_ip = cur->session->ip_ban->ip;
|
||||
|
||||
if( WideToUTF8(cur->request->ParamValue(L"removeip"), tmp_ip_str, tmp_ip_len) )
|
||||
if( wide_to_utf8(cur->request->ParamValue(L"removeip"), tmp_ip_str, tmp_ip_len) )
|
||||
{
|
||||
int ip = (int)inet_addr(tmp_ip_str);
|
||||
session_manager->RemoveIPBan(ip);
|
||||
|
@@ -69,7 +69,7 @@ bool Login::CheckPasswords(User & user, const std::wstring & password)
|
||||
{
|
||||
if( system->crypt.RSA(false, config->pass_rsa_private_key, user.pass_encrypted, pass_decrypted) )
|
||||
{
|
||||
pt::UTF8ToWide(pass_decrypted, user.password);
|
||||
pt::utf8_to_wide(pass_decrypted, user.password);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user