version 1.188, 2005/02/15 12:06:10
|
version 1.189, 2005/05/19 16:01:00
|
Line 2145 void SimplifyUrl (char **url)
|
Line 2145 void SimplifyUrl (char **url)
|
/* Doesn't need to do any more */ |
/* Doesn't need to do any more */ |
return; |
return; |
} |
} |
|
|
|
|
if ((p = path)) |
/* remove initial multiple /'s */ |
|
p = path - 1; |
|
if (path != *url && *p == used_sep && *path == used_sep) |
|
{ |
|
while (*path == used_sep) |
|
{ |
|
orig = path; |
|
dest = path + 1; |
|
while ((*orig++ = *dest++)); /* Remove multiple /'s */ |
|
end = orig-1; |
|
} |
|
} |
|
|
|
if (path) |
{ |
{ |
if (!((end = strchr (path, ';')) || (end = strchr (path, '?')) || |
if (!((end = strchr (path, ';')) || (end = strchr (path, '?')) || |
(end = strchr (path, '#')))) |
(end = strchr (path, '#')))) |