version 1.145, 2002/09/04 11:11:26
|
version 1.146, 2002/09/10 15:32:10
|
Line 2125 char *MakeRelativeURL (char *aName,
|
Line 2125 char *MakeRelativeURL (char *aName,
|
after_access = NULL; |
after_access = NULL; |
p = aName; |
p = aName; |
q = relatedName; |
q = relatedName; |
for (; *p && (*p == *q); p++, q++) |
for (; *p && !strncasecmp (p, q, 1); p++, q++) |
{ |
{ |
/* Find extent of match */ |
/* Find extent of match */ |
if (*p == ':') |
if (*p == ':') |
after_access = p + 1; |
{ |
|
after_access = p + 1; |
|
slashes++; |
|
} |
if (*p == DIR_SEP) |
if (*p == DIR_SEP) |
{ |
{ |
/* memorize the last slash position and count them */ |
/* memorize the last slash position and count them */ |