A new problem appeared today.
In my original patch for 2.7d I was searching for the string "expires=" 20
chars before the ",".
When AMB included it in 2.7e, he reduced the value to 16. It is not enough.

Today when visiting the NY-Times website, I've received the following
'expires' value:
  expires=Wednesday, 17-Sep-2003

So in this patch I changed the value to '18'.


--
Marc
--- orig/headbody.c     Sat Aug 10 15:48:25 2002
+++ headbody.c  Tue Sep 17 16:53:48 2002
@@ -548,8 +548,8 @@
 
  for(i=0;i<head->n;i++)
    {
-    strcpy(p,head->key[i]); p+=strlen(head->key[i]);
-    strcpy(p,": ");         p+=2;
+//    strcpy(p,head->key[i]); p+=strlen(head->key[i]);
+//    strcpy(p,": ");         p+=2;
 
     /*
        Cookies are a big problem here since none of the browsers handle them
@@ -580,10 +580,12 @@
              p=str+offset;
             }
 
+          strcpy(p,head->key[i]); p+=strlen(head->key[i]);
+          strcpy(p,": ");         p+=2;
           while(*lp && *lp!=',')
              *p++=*lp++;
           *p=0;
-          if(**(l+1) && lp>(*l+10) && strstr(p-16,"expires="))
+          if(**(l+1) && lp>(*l+10) && strcasestr(p-18,"expires="))
             {
              *p++=',';
              *p++=' ';
@@ -595,16 +597,20 @@
 
           while(isspace(*(p-1)))
              *--p=0;
+          strcpy(p,"\r\n");       p+=2;
          }
 
        free(list);
       }
     else
       {
+       strcpy(p,head->key[i]); p+=strlen(head->key[i]);
+       strcpy(p,": ");         p+=2;
        strcpy(p,head->val[i]); p+=strlen(head->val[i]);
+       strcpy(p,"\r\n");       p+=2;
       }
 
-    strcpy(p,"\r\n");       p+=2;
+//    strcpy(p,"\r\n");       p+=2;
    }
 
  strcpy(p,"\r\n");

Reply via email to