Diff for /Amaya/amaya/query.c between versions 1.265 and 1.266

version 1.265, 2001/02/12 10:10:03 version 1.266, 2001/02/13 09:31:43
Line 722  int                 AHTOpen_file (HTRequ Line 722  int                 AHTOpen_file (HTRequ
 static void SafePut_init (void)  static void SafePut_init (void)
 {  {
   char     *strptr;    char     *strptr;
   char     *str = NULL;    char     *ptr, *ptr2;
   char*     ptr, *strptrA, *ptr2;    char     *domain;
   char*     domain;  
   
   /* get the proxy settings from the thot.ini file */    /* get the proxy settings from the thot.ini file */
   strptr = TtaGetEnvString ("SAFE_PUT_REDIRECT");    strptr = TtaGetEnvString ("SAFE_PUT_REDIRECT");
   if (strptr && *strptr)    if (strptr && *strptr)
     {      {
       /* Get copy we can mutilate */        /* Get copy we can mutilate */
       ptr2 = strptr;        ptr2 = TtaStrdup (strptr);
       /* convert to lowercase */        /* convert to lowercase */
       ptr = strptr;        ptr = ptr2;
       while (*ptr)         while (*ptr) 
         {          {
           *ptr = tolower (*ptr);            *ptr = tolower (*ptr);
Line 741  static void SafePut_init (void) Line 740  static void SafePut_init (void)
         }          }
               
       /* create the list container */        /* create the list container */
       safeput_list = HTList_new ();           safeput_list = HTList_new ();
    
       /* store the domain list */        /* store the domain list */
         ptr = ptr2;
       ptr = strptr;        while ((domain = HTNextField (&ptr)) != NULL)
       while ((domain = HTNextField (&strptr)) != NULL)  
           HTList_addObject (safeput_list, TtaStrdup (domain));             HTList_addObject (safeput_list, TtaStrdup (domain)); 
   
       TtaFreeMemory (str);  
       TtaFreeMemory (ptr2);        TtaFreeMemory (ptr2);
     }      }
 }  }
Line 778  static void SafePut_delete (void) Line 776  static void SafePut_delete (void)
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 static ThotBool SafePut_query (char *url)  static ThotBool SafePut_query (char *url)
 {  {
   HTList*  cur;    HTList   *cur;
   char*    me;    char     *me;
   ThotBool found;    ThotBool  found;
   char     tmp[MAX_LENGTH];    char      tmp[MAX_LENGTH];
   
   /* extract the domain path of the url and normalize it */    /* extract the domain path of the url and normalize it */
   /* domain = url; */    /* domain = url; */
   cur = safeput_list;    cur = safeput_list;
   found = FALSE;    found = FALSE;
   
   while ((me = (char*) HTList_nextObject (cur))) {    while ((me = (char *) HTList_nextObject (cur)))
         iso2wc_strcpy (tmp, me);      {
         if (strstr (url, tmp))        iso2wc_strcpy (tmp, me);
           {        if (strstr (url, tmp))
            found = TRUE;          {
            break;            found = TRUE;
           }             break;
   }           } 
       } 
   
   return (found);    return (found);
 }  }
Line 2564  static char * NextNameValue (char **pstr Line 2563  static char * NextNameValue (char **pstr
   ---------------------------------------------------------------------*/    ---------------------------------------------------------------------*/
 static   HTAssocList * PrepareFormdata (char *string)  static   HTAssocList * PrepareFormdata (char *string)
 {  {
   char*        tmp_string, *tmp_string_ptr;    char          *tmp_string, *tmp_string_ptr;
   char*        name;    char          *name;
   char*        value;    char          *value;
   HTAssocList* formdata;    HTAssocList   *formdata;
   
   if (!string)    if (!string)
     return NULL;      return NULL;

Removed from v.1.265  
changed lines
  Added in v.1.266


Webmaster