Diff for /Amaya/amaya/AHTURLTools.c between versions 1.126 and 1.127

version 1.126, 2001/11/20 14:51:34 version 1.127, 2001/11/20 15:17:47
Line 1818  void         SimplifyUrl (char **url) Line 1818  void         SimplifyUrl (char **url)
     }      }
   else if (**url != DIR_SEP     else if (**url != DIR_SEP 
            && **url != '~'             && **url != '~'
   #ifdef _WINDOWS
              && (*url)[1] != ':'
   #endif /* _WINDOWS */
            && !IsW3Path(*url)              && !IsW3Path(*url) 
            /* && TtaFileExist (*url) == 0) */             /* && TtaFileExist (*url) == 0) */
            && (strlen (*url) + 7) < MAX_LENGTH)             && (strlen (*url) + 8) < MAX_LENGTH)
    {     {
       /*  In case of a user typed url without protocol specification        /*  In case of a user typed url without protocol specification
        and filepath like url (the ~ or / url beginning),          and filepath like url (the ~ or / url beginning), 
        we add the http:// (more conveniant when you often type urls)         we add the http:// (more conveniant when you often type urls)
        so that you can now enter w3.org directly  */             so that you can now enter w3.org directly  */    
       newptr = TtaGetMemory (strlen (path) + 7);        newptr = TtaGetMemory (strlen (path) + 8);
       *newptr = EOS;        *newptr = EOS;
       strcat (newptr, "http://");        strcat (newptr, "http://");
       strcat (newptr, *url);        strcat (newptr, *url);

Removed from v.1.126  
changed lines
  Added in v.1.127


Webmaster