version 1.219, 2009/01/09 11:52:56
|
version 1.220, 2009/01/12 09:24:23
|
Line 1347 char *GetBaseURL (Document doc)
|
Line 1347 char *GetBaseURL (Document doc)
|
*/ |
*/ |
length = strlen (basename) - 1; |
length = strlen (basename) - 1; |
/* search for the last DIR_SEP char */ |
/* search for the last DIR_SEP char */ |
while (length >= 0 && basename[length] != URL_SEP) |
while (length >= 0 && basename[length] != URL_SEP && basename[length] != DIR_SEP) |
length--; |
length--; |
if (length > 1 && basename[length-1] == DIR_SEP && basename[length-2] == ':') |
if (length > 1 && basename[length-1] == DIR_SEP && basename[length-2] == ':') |
return (basename); |
return (basename); |