ref: refs/heads/ma-misc
commit 591ad4b8fb3f7716e2d8779b9047a7dff6f1b2ac
Author: Michael Andres
Date: Fri Oct 30 12:32:01 2009 +0100
Don't try to use an empty proxy string (bnc #551314)
---
zypp/media/proxyinfo/ProxyInfoImpl.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/zypp/media/proxyinfo/ProxyInfoImpl.h b/zypp/media/proxyinfo/ProxyInfoImpl.h
index 9996b3a..550d88c 100644
--- a/zypp/media/proxyinfo/ProxyInfoImpl.h
+++ b/zypp/media/proxyinfo/ProxyInfoImpl.h
@@ -47,7 +47,7 @@ namespace zypp {
/** Return \c true if \ref enabled and \a url_r does not match \ref noProxy. */
bool useProxyFor( const Url & url_r ) const
{
- if ( ! enabled() )
+ if ( ! enabled() || proxy( url_r.getScheme() ).empty() )
return false;
ProxyInfo::NoProxyList noproxy( noProxy() );
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org