mirror of
				https://github.com/edubart/otclient.git
				synced 2025-11-03 20:26:23 +01:00 
			
		
		
		
	Fix a vulnerability in password encryption
* There was an error in the encryption used to save passwords, now it's really harder to decrypt the password from the config file * Other minor changes
This commit is contained in:
		@@ -68,7 +68,7 @@ bool ResourceManager::discoverWorkDir(const std::string& existentFile)
 | 
			
		||||
 | 
			
		||||
bool ResourceManager::setupUserWriteDir(const std::string& appWriteDirName)
 | 
			
		||||
{
 | 
			
		||||
    std::string userDir = PHYSFS_getUserDir();
 | 
			
		||||
    std::string userDir = getUserDir();
 | 
			
		||||
    std::string dirName;
 | 
			
		||||
#ifndef WIN32
 | 
			
		||||
    dirName = stdext::format(".%s", appWriteDirName);
 | 
			
		||||
@@ -306,6 +306,11 @@ std::string ResourceManager::getBaseDir()
 | 
			
		||||
    return PHYSFS_getBaseDir();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
std::string ResourceManager::getUserDir()
 | 
			
		||||
{
 | 
			
		||||
    return PHYSFS_getUserDir();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
std::string ResourceManager::guessFileType(const std::string& filename, const std::string& type)
 | 
			
		||||
{
 | 
			
		||||
    if(g_resources.fileExists(filename))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user