summaryrefslogtreecommitdiffstats
path: root/src/modules/AuthProviderFile
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-09-27 01:55:44 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-09-27 01:55:44 +0200
commite1d8490f0654a3da0b900407d80d91d8d0da68c8 (patch)
treed65b4bd4a596a98061e094120b6a1aed388d1c89 /src/modules/AuthProviderFile
parentd88c486ae403bee8f4b16e4bdf9daf19f8915eed (diff)
downloadmad-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.cpp12
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;