Fossil SCM

Fix an issue that sets proxy = getenv(http_proxy) even when global proxy option is disabled

a0756885 2008-10-25 14:29 trunk
Commit d8bf3113362d4b8baada2b029966dada998a1314

No diff available

+1 -1
--- src/url.c
+++ src/url.c
@@ -160,11 +160,11 @@
160160
void url_enable_proxy(const char *zMsg){
161161
const char *zProxy;
162162
zProxy = zProxyOpt;
163163
if( zProxy==0 ){
164164
zProxy = db_get("proxy", 0);
165
- if( zProxy==0 || zProxy[0] || is_false(zProxy) ){
165
+ if( zProxy==0 || zProxy[0] || !is_false(zProxy) ){
166166
zProxy = getenv("http_proxy");
167167
}
168168
}
169169
if( zProxy && zProxy[0] && !is_false(zProxy) ){
170170
char *zOriginalUrl = g.urlCanonical;
171171
--- src/url.c
+++ src/url.c
@@ -160,11 +160,11 @@
160 void url_enable_proxy(const char *zMsg){
161 const char *zProxy;
162 zProxy = zProxyOpt;
163 if( zProxy==0 ){
164 zProxy = db_get("proxy", 0);
165 if( zProxy==0 || zProxy[0] || is_false(zProxy) ){
166 zProxy = getenv("http_proxy");
167 }
168 }
169 if( zProxy && zProxy[0] && !is_false(zProxy) ){
170 char *zOriginalUrl = g.urlCanonical;
171
--- src/url.c
+++ src/url.c
@@ -160,11 +160,11 @@
160 void url_enable_proxy(const char *zMsg){
161 const char *zProxy;
162 zProxy = zProxyOpt;
163 if( zProxy==0 ){
164 zProxy = db_get("proxy", 0);
165 if( zProxy==0 || zProxy[0] || !is_false(zProxy) ){
166 zProxy = getenv("http_proxy");
167 }
168 }
169 if( zProxy && zProxy[0] && !is_false(zProxy) ){
170 char *zOriginalUrl = g.urlCanonical;
171

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button