X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Ffilter_auth_simple.cpp;h=6d1b7c84fb980f0b0bffe7d619c32f9a1f5b5464;hb=f0fb2a160e8c8cbb1147d476ae206ebcedbf8ecf;hp=7b0cba80384af7c950c1f556746c02dbe0cf9d43;hpb=79100c2ae2dac4bdde4f4d46b69e147562b4ec6c;p=metaproxy-moved-to-github.git diff --git a/src/filter_auth_simple.cpp b/src/filter_auth_simple.cpp index 7b0cba8..6d1b7c8 100644 --- a/src/filter_auth_simple.cpp +++ b/src/filter_auth_simple.cpp @@ -1,7 +1,7 @@ -/* $Id: filter_auth_simple.cpp,v 1.18 2006-03-16 10:40:59 adam Exp $ - Copyright (c) 2005-2006, Index Data. +/* $Id: filter_auth_simple.cpp,v 1.22 2007-01-25 14:05:54 adam Exp $ + Copyright (c) 2005-2007, Index Data. -%LICENSE% + See the LICENSE file for details */ #include "config.hpp" @@ -242,9 +242,10 @@ void yf::AuthSimple::process_init(mp::Package &package) const static bool contains(std::list list, std::string thing) { std::list::const_iterator i; for (i = list.begin(); i != list.end(); i++) - if (*i == thing) + if (mp::util::database_name_normalize(*i) == + mp::util::database_name_normalize(thing)) return true; - + return false; } @@ -342,7 +343,7 @@ void yf::AuthSimple::check_targets(mp::Package & package) const std::list targets; Z_OtherInformation *otherInfo = initReq->otherInfo; - mp::util::get_vhost_otherinfo(&otherInfo, 1, targets); + mp::util::get_vhost_otherinfo(otherInfo, targets); // Check each of the targets specified in the otherInfo package std::list::iterator i;