lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev dev.23: extended INCLUDE syntax broken for DOSPATH


From: Vlad Harchev
Subject: Re: lynx-dev dev.23: extended INCLUDE syntax broken for DOSPATH
Date: Wed, 28 Apr 1999 19:55:41 +0500 (SAMST)

 Here is a patch that fixes the problem Leonid described (infinite recursion)
 - this was due to modifications of TD.
 
 This patch also implements the following separators:
 ':' and ' for ' on unix
 ' for ' on other OSes.
 
 Best regards,
  -Vlad

diff -ru lynx-2.8.2dev25-orig/src/LYReadCFG.c 25-fixed/src/LYReadCFG.c
--- lynx-2.8.2dev25-orig/src/LYReadCFG.c        Wed Apr 28 18:38:11 1999
+++ 25-fixed/src/LYReadCFG.c    Wed Apr 28 19:47:53 1999
@@ -1421,9 +1421,22 @@
 
            char *url = NULL;
            char *cp1 = NULL;
+           char *sep = NULL;
 
+#if 0
            if ((p1 = strchr(value,':')) != 0)
                *p1++ ='\0';
+#else
+           if ( (p1 = strstr(value, sep=" for "))!=0 
+#ifdef unix
+               || (p1 = strstr(value, sep=":"))!=0
+#endif     
+           ) {
+               *p1 = '\0';
+               p1+=strlen(sep);
+           };  
+#endif         
+               
 
 #ifndef NO_CONFIG_INFO
            if (fp0 != 0  &&  !LYRestricted) {
@@ -1460,7 +1473,10 @@
                        }
                        cur_set[tbl2 - Config_Table] = FALSE;
                    }
-                   *p2 = savechar;
+                   if (savechar && p2[1])
+                       p1=p2+1;
+                   else
+                       break;  
                }
            }
            if (!allowed) {


reply via email to

[Prev in Thread] Current Thread [Next in Thread]