From e1d8490f0654a3da0b900407d80d91d8d0da68c8 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 27 Sep 2009 01:55:44 +0200 Subject: Use libicu to support unicode properly; migrated ConfigManager to UnicodeString --- src/modules/AuthProviderFile/AuthProviderFile.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/modules/AuthProviderFile') 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; -- cgit v1.2.3