diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-09-27 01:55:44 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-09-27 01:55:44 +0200 |
commit | e1d8490f0654a3da0b900407d80d91d8d0da68c8 (patch) | |
tree | d65b4bd4a596a98061e094120b6a1aed388d1c89 /src/modules/AuthProviderFile | |
parent | d88c486ae403bee8f4b16e4bdf9daf19f8915eed (diff) | |
download | mad-e1d8490f0654a3da0b900407d80d91d8d0da68c8.tar mad-e1d8490f0654a3da0b900407d80d91d8d0da68c8.zip |
Use libicu to support unicode properly; migrated ConfigManager to UnicodeString
Diffstat (limited to 'src/modules/AuthProviderFile')
-rw-r--r-- | src/modules/AuthProviderFile/AuthProviderFile.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/AuthProviderFile/AuthProviderFile.cpp b/src/modules/AuthProviderFile/AuthProviderFile.cpp index 1756747..b1e1e52 100644 --- a/src/modules/AuthProviderFile/AuthProviderFile.cpp +++ b/src/modules/AuthProviderFile/AuthProviderFile.cpp @@ -89,23 +89,23 @@ bool AuthProviderFile::handleConfigEntry(const Core::ConfigEntry &entry, bool /* if(!entry[0].getKey().matches("AuthProviderFile")) return false; - if(entry[1].empty()) + if(entry[1].isEmpty()) return true; if(entry[1].getKey().matches("Hash")) { - if(entry[2].empty()) { - filehash = entry[1][0]; + if(entry[2].isEmpty()) { + filehash = entry[1][0].extract(); if(!Common::Hash::isHashSupported(filehash)) application->logf(Core::Logger::LOG_WARNING, "AuthProviderFile: Unsupported hash '%s'", filehash.c_str()); } } else if(entry[1].getKey().matches("File")) { - if(entry[2].empty()) { - files.push_back(entry[1][0]); + if(entry[2].isEmpty()) { + files.push_back(entry[1][0].extract()); } } - else if(!entry[2].empty()) + else if(!entry[2].isEmpty()) return false; return true; |