changeset 452:6d57529fdeec

- Allowed the rc parser to skip whitespace around the equal sign.
author jcid
date Tue, 11 Nov 2008 15:15:58 +0100
parents 3ec874f80146
children 817c15b79ca7 60fd513750ad
files ChangeLog dlib/dlib.c src/IO/http.c
diffstat 3 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Nov 11 13:53:18 2008 +0100
+++ b/ChangeLog	Tue Nov 11 15:15:58 2008 +0100
@@ -29,13 +29,12 @@
    Patch: Justus Winter
 +- Reduced warnings with gcc-4.3.
    Patch: Thomas Orgis
-+- Fixed the proxy URL parameter for Http_must_use_proxy().
-   Patch: David McKee
 +- Added the "middle_click_drags_page" dillorc option.
    Patch: Jorge Arellano, Thomas Orgis
 +- Set the File menu label to hide when the File menu-button is shown.
  ? Trying a new iconv() test in configure.in.
-   Patch: Jorge Arellano
+ - Allowed the rc parser to skip whitespace around the equal sign.
+   Patches: Jorge Arellano
 
 dw
 
--- a/dlib/dlib.c	Tue Nov 11 13:53:18 2008 +0100
+++ b/dlib/dlib.c	Tue Nov 11 15:15:58 2008 +0100
@@ -776,6 +776,10 @@
       *p = 0;
       *name = *line;
 
+      /* skip whitespace */
+      if (p < eq)
+         for (++p; isspace(*p); ++p);
+
       /* get value */
       if (p == eq) {
          for (++p; isspace(*p); ++p);
--- a/src/IO/http.c	Tue Nov 11 13:53:18 2008 +0100
+++ b/src/IO/http.c	Tue Nov 11 15:15:58 2008 +0100
@@ -398,6 +398,7 @@
          dFree(np);
       }
    }
+   _MSG("Http_must_use_proxy: %s\n  %s\n", URL_STR(url), ret ? "YES":"NO");
    return ret;
 }
 
@@ -459,7 +460,7 @@
    S->Info = Info;
 
    /* Proxy support */
-   if (Http_must_use_proxy(URL_HOST(S->web->url))) {
+   if (Http_must_use_proxy(S->web->url)) {
       hostname = dStrdup(URL_HOST(HTTP_Proxy));
       S->port = URL_PORT(HTTP_Proxy);
       S->use_proxy = TRUE;