Fossil SCM

Update conditions when to look for proxy URL in environment.

a0756885 2008-10-25 17:19 trunk
Commit d65d619d948dcb70fc9cf210b128e5b009d4ea1b
1 file changed +1 -1
+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]==0 || is_truth(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]==0 || is_truth(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