Commit fcbd74a2 authored by Daniel Veillard's avatar Daniel Veillard

fixed 2 uri normalization bugs on '//' reduction Daniel

* uri.c: fixed 2 uri normalization bugs on '//' reduction
Daniel
parent 23793845
Tue Jun 26 09:46:29 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* uri.c: fixed 2 uri normalization bugs on '//' reduction
Mon Jun 25 18:06:23 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* include/libxml/Makefile.am: Laszlo Peter pointed out that
......
......@@ -774,6 +774,9 @@ xmlNormalizeURIPath(char *path) {
*/
if ((cur[0] == '.') && (cur[1] == '/')) {
cur += 2;
/* '//' normalization should be done at this point too */
while (cur[0] == '/')
cur++;
continue;
}
......@@ -790,6 +793,10 @@ xmlNormalizeURIPath(char *path) {
goto done_cd;
(out++)[0] = (cur++)[0];
}
/* nomalize // */
while ((cur[0] == '/') && (cur[1] == '/'))
cur++;
(out++)[0] = (cur++)[0];
}
done_cd:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment