Diff for /Amaya/amaya/AHTURLTools.c between versions 1.156 and 1.157

version 1.156, 2002/11/13 11:21:30 version 1.157, 2002/11/15 15:06:38
Line 1081  char *GetLocalPath (Document doc, char Line 1081  char *GetLocalPath (Document doc, char
       /* check whether the file name exists */        /* check whether the file name exists */
       len = strlen (url) - 1;        len = strlen (url) - 1;
       if (IsW3Path (url))        if (IsW3Path (url))
          url_sep = '/';           url_sep = URL_SEP;
       else         else 
           url_sep = DIR_SEP;            url_sep = DIR_SEP;
       noFile = (url[len] == url_sep);        noFile = (url[len] == url_sep);
Line 1124  char *GetLocalPath (Document doc, char Line 1124  char *GetLocalPath (Document doc, char
             strcat (ptr, documentname);              strcat (ptr, documentname);
         }          }
       TtaFreeMemory (documentname);        TtaFreeMemory (documentname);
         /* substitute invalid chars in file names by a _ */
         n = ptr;
         while (*n)
           {
             if (*n == '*' || *n == ',')
               *n = '_';
             n++;
           }
       /* restore the url */        /* restore the url */
       if (noFile)        if (noFile)
         url[len] = url_sep;          url[len] = url_sep;

Removed from v.1.156  
changed lines
  Added in v.1.157


Webmaster