Diff for /Amaya/amaya/AHTURLTools.c between versions 1.11 and 1.12

version 1.11, 1997/01/21 10:39:10 version 1.12, 1997/01/21 16:18:42
Line 331  char               *url; Line 331  char               *url;
 }  }
   
 /*----------------------------------------------------------------------  /*----------------------------------------------------------------------
   IsValidNormalizeURL  
   says which URLs may be normalized              
   ----------------------------------------------------------------------*/  
   
 #ifdef __STDC__  
 boolean             IsValidNormalizeURL (char *path)  
 #else  /* __STDC__ */  
 boolean             IsValidNormalizeURL (path)  
 char               *path;  
   
 #endif /* __STDC__ */  
 {  
    if (strchr (path, ':') && !strncmp (path, "http:", 5))  
       return (TRUE);  
    else  
       return (FALSE);  
 }  
   
   
 /*----------------------------------------------------------------------  
    NormalizeURL     NormalizeURL
    normalizes orgName according to a base associated with doc, and     normalizes orgName according to a base associated with doc, and
    following the standard URL format rules.     following the standard URL format rules.
    The function returns the new complete and normalized URL      The function returns the new complete and normalized URL 
    or file name path (newName) and the name of the document (docName).                      or file name path (newName) and the name of the document (docName).        
    N.B. If the function can't find out what's the docName, it assigns     N.B. If the function can't find out what's the docName, it assigns
    the name "noname.html".     the name "noname.html".
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
Line 397  char               *docName; Line 377  char               *docName;
       ** each element which is retrieved. A better way would be to        ** each element which is retrieved. A better way would be to
       ** move this higher up in the function call hierarchy.        ** move this higher up in the function call hierarchy.
     */      */
    if (IsValidNormalizeURL (tempname) && doc)     if (!IsW3Path (tempname) && doc)
      {       {
         length = MAX_LENGTH;          length = MAX_LENGTH;
         /* get the root element    */          /* get the root element    */

Removed from v.1.11  
changed lines
  Added in v.1.12


Webmaster