version 1.71, 1999/07/28 16:39:39
|
version 1.72, 1999/08/24 14:04:59
|
Line 537 ThotBool IsW3Path (path)
|
Line 537 ThotBool IsW3Path (path)
|
const STRING path; |
const STRING path; |
#endif /* __STDC__ */ |
#endif /* __STDC__ */ |
{ |
{ |
if ((ustrncmp (path, TEXT("http:"), 5)) && (ustrncmp (path, TEXT("ftp:"), 4)) && |
if (ustrncmp (path, TEXT("http:"), 5) && ustrncmp (path, TEXT("ftp:"), 4) && |
(ustrncmp (path, TEXT("telnet:"), 7)) && (ustrncmp (path, TEXT("wais:"), 5)) && |
ustrncmp (path, TEXT("telnet:"), 7) && ustrncmp (path, TEXT("wais:"), 5) && |
(ustrncmp (path, TEXT("news:"), 5)) && (ustrncmp (path, TEXT("gopher:"), 7)) && |
ustrncmp (path, TEXT("news:"), 5) && ustrncmp (path, TEXT("gopher:"), 7) && |
(ustrncmp (path, TEXT("mailto:"), 7)) && (ustrncmp (path, TEXT("archie:"), 7))) |
ustrncmp (path, TEXT("mailto:"), 7) && ustrncmp (path, TEXT("archie:"), 7)) |
return FALSE; |
return FALSE; |
return TRUE; |
return TRUE; |
} |
} |
|
|
/*---------------------------------------------------------------------- |
/*---------------------------------------------------------------------- |
Line 710 STRING url;
|
Line 710 STRING url;
|
usprintf (ptr, TEXT("%s%s%d%s"), TempFileDirectory, DIR_STR, doc, DIR_STR); |
usprintf (ptr, TEXT("%s%s%d%s"), TempFileDirectory, DIR_STR, doc, DIR_STR); |
if (!TtaCheckDirectory (ptr)) |
if (!TtaCheckDirectory (ptr)) |
/* directory did not exist */ |
/* directory did not exist */ |
# ifdef _WINDOWS |
TtaMakeDirectory (ptr); |
umkdir (ptr); |
|
# else /* !_WINDOWS */ |
|
umkdir (ptr, S_IRWXU); |
|
# endif /* !_WINDOWS */ |
|
|
|
/* don't include the query string within document name */ |
/* don't include the query string within document name */ |
n = ustrrchr(documentname, TEXT('?')); |
n = ustrrchr(documentname, TEXT('?')); |