From 00eacbf334a012bf55988f5ff370fa6dc5270166 Mon Sep 17 00:00:00 2001 From: Marius Tomaschewski Date: Thu, 16 Mar 2006 17:28:18 +0000 Subject: [PATCH] - Fixed to use toLower in NO_PROXY checks --- zypp/media/MediaCurl.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/zypp/media/MediaCurl.cc b/zypp/media/MediaCurl.cc index 96fc459..b8be67c 100644 --- a/zypp/media/MediaCurl.cc +++ b/zypp/media/MediaCurl.cc @@ -267,15 +267,16 @@ void MediaCurl::attachTo (bool next) it != proxy_info.noProxyEnd(); it++) { - std::string host(_url.getHost()); + std::string host( str::toLower(_url.getHost())); + std::string temp( str::toLower(*it)); // no proxy if it points to a suffix // preceeded by a '.', that maches // the trailing portion of the host. - if( it->size() > 1 && it->at(0) == '.') + if( temp.size() > 1 && temp.at(0) == '.') { - if(host.size() > it->size() && - host.compare(host.size() - it->size(), it->size(), *it) == 0) + if(host.size() > temp.size() && + host.compare(host.size() - temp.size(), temp.size(), temp) == 0) { DBG << "NO_PROXY: '" << *it << "' matches host '" << host << "'" << endl; @@ -285,7 +286,7 @@ void MediaCurl::attachTo (bool next) } else // no proxy if we have an exact match - if( host == *it) + if( host == temp) { DBG << "NO_PROXY: '" << *it << "' matches host '" << host << "'" << endl; -- 2.7.4